This commit is contained in:
Lars Kusch 2023-01-16 15:00:35 +01:00
parent 07d9149ec3
commit 8df7457c6a

View File

@ -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);