#Pain - Listing Payment Methods

1 messages · Page 1 of 1 (latest)

wraith solar
#

Hello! You can only specify one at a time. We're working on improving this, but for now you'll need to make multiple calls.

split scarab
#

Got it, thank you.

#

Is there a way to get the type from the form (stripe elements)?

wraith solar
#

Which Stripe Element(s) are you using?

split scarab
#

The custom payment flow

wraith solar
#

Sorry, not sure what you mean. We have the Payment Element, the Card Element, the IBAN Element, etc. Can you specify which of those you're using, or point me to the guide you're following?

split scarab
#

I believe it's the card element

#

Oh sorry payment element with the save card functionality

wraith solar
#

Gotcha. The Payment Element will use the payment method types specified on the Intent you initialize Stripe Elements with. Are you specifying specific types when you create the Intent?

split scarab
#

I haven't specified any

wraith solar
split scarab
#

I simply passed this option when creating the

automatic_payment_methods: {
  enabled: true,
},
#

Sure, give me a moment

#

req_xMef7mTHfjycZ8

#

It seems like it provides card automatically in an array

wraith solar
#

Ah, okay. So when using automatic payment methods the payment methods you have enabled in the Dashboard will be used. You can look at the payment_method_types array on the Payment Intent created to see which ones are enabled for a given Payment Intent.

split scarab
# split scarab

Actually relating to this I realized the logic I was trying to do is flawed and wouldn't work

split scarab
#

Because its weird currently, sometimes it shows the google pay or apple pay but sometimes it does not even when I have them enabled

#

or do they not show up on test mode?

wraith solar
#

Apple Pay and Google Pay fall under card, yes. They only show up when someone has an active, valid card in their Apple Pay or Google Pay wallet.

#

They should show up in test mode when conditions allow.

split scarab
#

I tried accessing a live page of mine using stripes checkout page on an iPhone and it does not show

#

The google pay does show

wraith solar
split scarab
#

Yes, would I have to add a subdomain too?

#

Oh it shows up if I use safari

#

but not if I use google chrome on ios

split scarab
wraith solar
#

Yep, that's expected.

#

You do need to add subdomains for custom flows.

#

Apple Pay only shows up in Safari.