#Andrii-SEPA-mandate
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ just to make sure we're on the same page, can you tell me a bit more about your flow and how you got to this error?
okay,
- create customer
- attacth method payment ( SEPA ) to customer
- create shedule sub
- and when i make pay, i to get error
Gotcha, and are you following this guide to crate the payment method?
https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web
i will check
@floral silo am i can use payment intent method , or setup intent required ?
You can use either, which one depends on your flow. If you're collecting the payment method information in advance of making a payment with it, then you'd use a setup intent as outlined in that guide.
If you're collecting the payment details at the same time as a payment is being made, then you'd use a payment intent as outlined in this guide:
https://stripe.com/docs/payments/sepa-debit/accept-a-payment
but when i use https://stripe.com/docs/api/subscription_schedules/create , there is nothing with secret key
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Subscription Schedules and Subscriptions are distinct objects in our ecosystem. A Subscription Schedule will not have a client secret as it is an object that controls future changes to a related Subscription.
okay, then how add sepa mandate to Subscription Schedules?
You don't. You collect the mandate as part of setting up the SEPA PaymentMethod. You then can then use that PaymentMethod to charge your customer for subscription payments
Meaning you would either set it as the default payment method for the Customer or the Subscription
https://stripe.com/docs/api/subscriptions/object#subscription_object-default_source
https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay, thanks. i will see