#keeth
1 messages · Page 1 of 1 (latest)
Hi, are you currently using Stripe Charges API? I want to confirm that we are on the same page here.
Hi, to pay currently I call either invoice.pay() or I create a subscription. I don't think I call the charges API directly.
Overall, here is the migrations guide: https://stripe.com/docs/payments/payment-intents/migration and it's recommended that you migrate to Payment Intents.
What specific guidelines are you looking for?
I have read this guide, but it doesn't mention Invoices, Subscriptions or Tax Rates
Generally, what you summarized is correct. You can't render a Payment Element before getting a Payment Intent client_secret which comes from creating a Payment Intent.
Right.. I wonder if SetupIntent is closer to what I want.
From our Elements, we recommend that you integrate with Payment Elements, https://stripe.com/docs/payments/accept-a-payment?ui=elements as this supports many Payment Methods without you having to have separate integrations.
yes I want to do all of these things. i am just wondering what's the best way to get there.
I recommend that you start with this guide, https://stripe.com/docs/payments/payment-intents/migration and let us know if you have more specific questions.
could i use SetupIntent to collect the payment method in addition to billing address, and then use that payment method in a Payment Elements form?
Hmm, that is not quite how SetupIntent and Payment Elements work. The SetupIntent allows you to collect the payment method in advance, so you can use that for future payments. During the SetupIntent, when any billing information is needed for a specific payment method, they would be collected there, https://stripe.com/docs/api/setup_intents/create#create_setup_intent-payment_method_data-billing_details.
i feel like a SetupIntent flow is closer to what we have today. we collect the payment method and location in a single step, calculate taxes, and then present the finalized invoice to pay.
but payment happens on the server
With Payment Elements, the customer is currently paying for a charge, and you can also save the payment method for future use, https://stripe.com/docs/payments/save-during-payment