#thedude - checkout google and apple pay
1 messages · Page 1 of 1 (latest)
One more thing, can I enable payment options based on country? Like stripe see what payment options are possible for this country and show them?
There are considered as cards, so I can test but I expect disabling those who require not including card payments, other that turning them off entirely in your checkout settings
You can specify the payment methods used per session when you create the session, if you want to control that, though we recommend using automatic payment method selection
I thought so too, so I had "setup_future_use" set, but payment information was not saved until I pay using a card
rather than Google Pay
paymentObject.payment_intent_data = {
setup_future_usage: "off_session"
}
I had this option set because I wanted to save user card information. When the customer pays using Google Pay, I cannot see any payment methods in user's profile on Stripe.
If I pay with card, I will see the payment method just fine.
Yes just a sec
If I pay using Google Pay, I don't see any payment method on Stripe's dashboard even though I have: setup_future_usage: "off_session"
Can you share the checkout session that completed? Or the successful payment intent that was paid with google pay?
Let me find it
While I'm doing that, wondering can I use the following in a Checkout sesssion:
paymentObject.payment_method_options = {
card: {
request_three_d_secure: "any",
setup_future_usage: "off_session",
}
}
Sorry for the multiple questions, it's kinda a chance to talk to you.
pi_3KU4NaAxZHAFaCAO08hwrvX9
If I click on the customer, I don't see the payment method.
Even though off_session is set.
It seems like for some reason setup_future_usage: "off_session" is not in the request body for that request.
I can find it now 😮
I'm wondering if it's possible to save card details while choosing multiple payment options like ['card', 'ideal']? I tried to configure the setup_future_usage at the payment_method_options level but it didn't work.
You can configure this through payment_intent_data[setup_future_usage]:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I want to setup that only for card
Otherwise, I will get an error that ideal doesn't support setup_future_usage
You can't specify this per payment method, currently, though we are working on trying to make this possible to apply to the payment methods that support it
Great to hear
How can I let Stripe checkout show payment options based on country?
Should I set payment_method_types to automatic?
Yes, in that case we'd adapt the payment methods to show the most relevant ones for the location of your customer
Just like this: payment_method_types: ['automatic'],
Thank you so much
NP!