#eleven
1 messages · Page 1 of 1 (latest)
You can check the feature support of each payment method here: https://stripe.com/docs/payments/payment-methods/integration-options#additional-api-wallets
For the 3 payment methods you mentioned - yes, they support saving the payment method for future usage
Well, in my website I have created upsell pages, meaning that after initial purchase user is rediected to another product page but they choose whether they want a product or not, if they want it, they will click button to be charged again (card) and order is updated. In upsell pages they would not need to enter card details again.
I wasn't sure how it would work with those payment methods.
When creating a charge for card I use this code
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => $selected_product_price * 100,
'currency' => 'usd',
'payment_method' => WC()->session->get('stripe_payment_method'),
'customer' => WC()->session->get('stripe_customer_id'),
'description' => 'Payment for Order #' . $order_id,
'confirm' => true,
'off_session' => true,
]);
This would be familiar with those payment methods I would just need to update payment method types? (Add those payment methods)?
Here's the guide about how you will make a charge with the saved payment method: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
You can use automatic_payment_methods: {enabled: true}, so that it can be charged if those payment methods are enabled in the Dashboard
i see thank you