#Wilcalaf-pi-terminal

1 messages · Page 1 of 1 (latest)

jagged elbow
#

Hey, can you share the PI ID pi_xxx?

honest ravine
#

pi_3LD5CeDHbAVPLoit1C4EKh7X

#

thats the last one i tred

jagged elbow
#

And can you share the code that's returning the error?

honest ravine
#

$this->stripe->paymentIntents->create([
'amount' => intVal($amount * 100),
'currency' => $this->currency,
'payment_method_types' => ['card_present'],
'capture_method' => 'manual',
], [
'stripe_account' => $this->stripe_account_id
]);

#

this i use to create

#

then i collect and process on front

#

and then i use this to try to capture

#

$response = $this->stripe->paymentIntents->capture($payment_intent);

#

where $payment_intent is the ID i got from the creation

jagged elbow
#

Yeah, you need to pass the stripe_account parameter to the capture call:

$stripe->paymentIntents->capture(
  'pi_1EUmyp2x6R10KRrhz0WmtMnF',
  [], [
    'stripe_account' => $this->stripe_account_id
]);
honest ravine
#

Ahh i see so capture gets the acc id on second arr not first

#

ill try that thanks

jagged elbow