fix for customer rereive and charge with sources
This commit is contained in:
parent
f0c572717f
commit
f5ef0441fd
@ -304,8 +304,8 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
elseif (preg_match('/src_/i',$source))
|
elseif (preg_match('/src_/i',$source))
|
||||||
{
|
{
|
||||||
$stripeacc = $stripe->getStripeAccount($entity);
|
|
||||||
$customer2 = \Stripe\Customer::retrieve($customer->id, array("stripe_account" => $stripeacc));
|
$customer2 = $customerstripe=$stripe->customerStripe($facture->thirdparty, $stripeacc, $servicestatus);
|
||||||
$src = $customer2->sources->retrieve("$source");
|
$src = $customer2->sources->retrieve("$source");
|
||||||
if ($src->type=='card')
|
if ($src->type=='card')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user