mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes
This commit is contained in:
parent
e1fa873d1f
commit
9f38380d61
@ -62,7 +62,8 @@ class BACS
|
|||||||
$session = $this->stripe->stripe->checkout->sessions->retrieve($request->session_id, ['expand' => ['setup_intent']]);
|
$session = $this->stripe->stripe->checkout->sessions->retrieve($request->session_id, ['expand' => ['setup_intent']]);
|
||||||
|
|
||||||
$customer = $this->stripe->findOrCreateCustomer();
|
$customer = $this->stripe->findOrCreateCustomer();
|
||||||
$payment_method = $this->stripe->attach($session->setup_intent->payment_method, $customer);
|
$this->stripe->attach($session->setup_intent->payment_method, $customer);
|
||||||
|
$payment_method = $this->stripe->getStripePaymentMethod($session->setup_intent->payment_method);
|
||||||
$this->storePaymentMethod($payment_method, $customer);
|
$this->storePaymentMethod($payment_method, $customer);
|
||||||
}
|
}
|
||||||
return redirect()->route('client.payment_methods.index');
|
return redirect()->route('client.payment_methods.index');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user