#Bruno777

1 messages · Page 1 of 1 (latest)

sage galleonBOT
burnt forge
summer fog
#

OK, thanks. but then, sorry, what should I do?

#

After this : $stripe->paymentMethods->all([
'customer' => 'cus_...',
'type' => 'card',
]);

burnt forge
#

What do you mean?

summer fog
#

I have to do this next :

#

try {
\Stripe\PaymentIntent::create([
'amount' => 989,
'currency' => 'eur',
'customer' => 'cus_...',
'payment_method' => '{{PAYMENT_METHOD_ID}}',
'off_session' => true,
'confirm' => true,
]);

#

So I have to store the PAYMENT_METHOD ID in a variable, I don't see how to do it

burnt forge
#

Just iterate through the list and find the payment method id to use

summer fog
#

Thanks, I have this:
Fatal error: Uncaught Error: Class 'Stripe\StripeClient' not found