#thedude - checkout google and apple pay

1 messages · Page 1 of 1 (latest)

brazen gust
oblique blade
#

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?

brazen gust
#

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

oblique blade
#

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

brazen gust
#

What do you mean?

#

Can you share a specific example?

oblique blade
#
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.

brazen gust
#

See it where?

#

Do you have an example checkout session / payment intent?

oblique blade
#

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"

brazen gust
#

Can you share the checkout session that completed? Or the successful payment intent that was paid with google pay?

oblique blade
#

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.

brazen gust
oblique blade
#

I want to setup that only for card

#

Otherwise, I will get an error that ideal doesn't support setup_future_usage

brazen gust
#

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

oblique blade
#

Great to hear

#

How can I let Stripe checkout show payment options based on country?

#

Should I set payment_method_types to automatic?

brazen gust
#

Yes, in that case we'd adapt the payment methods to show the most relevant ones for the location of your customer

oblique blade
#

Just like this: payment_method_types: ['automatic'],

brazen gust
oblique blade
#

Thank you so much

brazen gust
#

NP!