#amix_checkout-payment-intent-switch

1 messages ยท Page 1 of 1 (latest)

subtle robinBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1471560434396958885

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

cerulean stirrup
#

Hello ๐Ÿ‘‹

Do you have a specific question about using Payment Intents instead of Checkout Sessions?

river iris
#

Hello there, yes!

  1. At the moment I am using stripe.redirectToCheckout() - will that have to be replaced?

  2. I am using webhooks to monitor the events, what will be triggered once the payment has been completed using the intents?

#

I am currently listening for this event type checkout.session.completed

cerulean stirrup
#
  1. Yes. Checkout Sessions and Payment Intents are different APIs entirely. I recommend starting with our canonical integration guide here: https://docs.stripe.com/payments/accept-a-payment?payment-ui=elements&api-integration=paymentintents

  2. You will want to listen to payment_intent.succeeded event https://docs.stripe.com/api/events/types?api-version=2026-01-28.preview&rds=1#event_types-payment_intent.succeeded

Build a payment form or use a prebuilt checkout page to start accepting online payments.

river iris
#

Where can I see the other payments methods besides card

cerulean stirrup
#

What do you mean?

#

Do you want to see docs on other payment methods? Other payment methods showing up in your integration?

river iris
#

Yes, for example "card", "paypal"

#

Like the methods I can add to the intents

cerulean stirrup
#

It depends on what payment methods you enable and what payment methods are valid for each payment session

river iris
#

But where do I retrieve the values to put in the arrays?

payment_method_types: ['bancontact', 'card', 'eps', 'ideal', 'p24', 'sepa_debit'],

cerulean stirrup
#

I don't know what you mean

#

You specify them yourself or you use automatic_payment_methods: {enabled: true" and let Stripe automatically determine what payment methods should apply

river iris
#

Yes exactly, but how do I know the values to put

#

I want to specify them manually

#

Like how do I know if it's revolut or revolutpay or revolut_pay, is there a list?

cerulean stirrup
#

Please review our docs thoroughly. We document the necessary values there

river iris
#

Don't you have a specific doc to point out

cerulean stirrup
river iris
#

I'm actually asking where to get the available payment methods values

#

Also, are payment intents valid for subscriptions?

cerulean stirrup
river iris
#

Have a wonderful rest of your day !! ๐Ÿ™‚

cerulean stirrup
#

No worries, it's why we're here ๐Ÿ™‚