#Nadiya

1 messages · Page 1 of 1 (latest)

gentle talonBOT
inland bison
#

Payment Intent API

jade mortar
#
                            'amount' => $payment->price,
                            'currency' => 'jpy',
                            'customer' => $user->stripe_id,
                            'off_session' => true,
                            'confirm' => true,
                        ]);```

can i use like this?
#

i've already default payment method set to this customer. do i still has to pass payment_method?

inland bison
#

Um I think you don't need to. Let's try and see how it goes

inland bison
#

@jade mortar sorry let's continue here

#

What error you have?

jade mortar
#

(Request req_Ba2AnWujqq0uVu) You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method.

mild valve
#

Sure, that's expected – you're not passing the payment_method parameter when attempting to confirm