From e2bd0198d1bcfec9f0b1cceae41e6e36246b7cc8 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Thu, 8 Mar 2018 02:26:57 +0100 Subject: [PATCH] Fix class call --- htdocs/stripe/class/stripe.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php index c3fded06264..a1eefd6ecb7 100644 --- a/htdocs/stripe/class/stripe.class.php +++ b/htdocs/stripe/class/stripe.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2018 PtibogXIV * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -213,7 +213,7 @@ $metadata = array( "idsource" => "".$item."", "idcustomer" => "".$societe->id."" ); -$return = new StripeConnexion($this->db); +$return = new Stripe($this->db); try { if ($stripeamount>=100) { if ($entite=='1' or empty($conf->stripeconnect->enabled)){ @@ -264,8 +264,8 @@ $return->id = $charge->id; if ($charge->source->type=='card'){ $return->message = $charge->source->card->brand." ****".$charge->source->card->last4; }elseif ($charge->source->type=='three_d_secure'){ -$stripeconnect=new StripeConnexion($this->db); -$src = \Stripe\Source::retrieve("".$charge->source->three_d_secure->card."",array("stripe_account" => $stripeconnect->GetStripeAccount($conf->entity))); +$stripe=new Stripe($this->db); +$src = \Stripe\Source::retrieve("".$charge->source->three_d_secure->card."",array("stripe_account" => $stripe->GetStripeAccount($conf->entity))); $return->message = $src->card->brand." ****".$src->card->last4; }else { $return->message = $charge->id;