mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes
This commit is contained in:
parent
07d9149ec3
commit
8df7457c6a
@ -96,18 +96,13 @@ class BACS
|
|||||||
'payment_method' => $request->token,
|
'payment_method' => $request->token,
|
||||||
'confirm' => true,
|
'confirm' => true,
|
||||||
];
|
];
|
||||||
$this->stripe->createPaymentIntent($payment_intent_data);
|
$state['payment_intent'] = $this->stripe->createPaymentIntent($payment_intent_data);
|
||||||
$state = [
|
$state = [
|
||||||
'payment_hash' => $request->payment_hash,
|
'payment_hash' => $request->payment_hash,
|
||||||
];
|
];
|
||||||
|
|
||||||
$state = array_merge($state, $request->all());
|
$state = array_merge($state, $request->all());
|
||||||
|
|
||||||
if ($request->has('token') && ! is_null($request->token)) {
|
|
||||||
$state['store_card'] = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$state['payment_intent'] = PaymentIntent::retrieve($state['server_response']->id, array_merge($this->stripe->stripe_connect_auth, ['idempotency_key' => uniqid("st",true)]));
|
|
||||||
$state['customer'] = $state['payment_intent']->customer;
|
$state['customer'] = $state['payment_intent']->customer;
|
||||||
|
|
||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $state);
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $state);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user