#brettski-checkout-pm-types

1 messages ยท Page 1 of 1 (latest)

normal garnet
#

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.)

copper fossil
#

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?

normal garnet
#

Yup!

copper fossil
#

Sounds good. Thank you.

copper fossil
#

@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?

normal garnet
#

Do you have an example Checkout Session ID that isn't showing apple or google pay?

copper fossil
#

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

normal garnet
#

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!

copper fossil
#

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

normal garnet
#

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

copper fossil
#

LIke this? req_z5tStgGVmmIrSD?

normal garnet
#

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

copper fossil
#

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?

normal garnet
#

Yes, it still would've have shown if you had passed in card as an option for payment_method_types