#brettski-checkout-pm-types
1 messages ยท Page 1 of 1 (latest)
Yes, in the past payment_method_types was required when creating a Checkout Session, but last year we released "automatic payment methods" which will automatically enable any of the types you have turned on in your dashboard setting (https://dashboard.stripe.com/settings/payment_methods) if they are compatible with that particular session (depending on things like currency, location, etc.)
So by removing this line/parameter will that allow my customers to pay with Apple Pay and Google Pay since they are configured payment types in our account?
Yup!
Sounds good. Thank you.
@normal garnet So I updates my request to remove the payment_method_types though only card shows as an option still. Perhaps is subscriptions only card? Nope does this for regular items too.
Any suggestion on what to verify to see why I am not getting the other payment options?
Is there perhaps additional configuration required for Apple Pay or Google Pay other then them being set to On?
Do you have an example Checkout Session ID that isn't showing apple or google pay?
Where do I get that? From the checkout webpage or dev dashboard?
well my payment_intent.created record shows
"payment_method_types": [
"card"
],
I am not really sure why it is still setting that value
Looking at the log for the same checkouts, this POST /v1/checkout/sessions
Doesn't have payment_method_types specified in the response body
You should be able to find that in the dashboard. A cs_test_xxx ID is what I'm looking for - a request ID will also work!
I am wrong, it is still there
I am not in test ๐
So I have verifeid in my log that the Response POST body does not contain Payment_method_types though it is showing in the response and in Payment intents
And verified that it was present in older log entries
I think that's expected - but let's back up for a minute. Are you still not seeing apple pay or google pay? If you send over a Checkout Session ID I can take a quick look to see what may be wrong
LIke this? req_z5tStgGVmmIrSD?
That'll work ๐ Give me a few minutes
So when I visit the Checkout Session created from that request I see Google Pay working fine in Chrome and Apple Pay showing up in Safari. This means that whatever device you're testing on isn't properly set up with apply pay/google pay saved cards
haha, well okay
So I didn't realize it was device dependent. Good to know. So would it have shown for those prior to me removing the payment_method_types value?
Yes, it still would've have shown if you had passed in card as an option for payment_method_types