#Andrii-payments
1 messages · Page 1 of 1 (latest)
@mystic crescent hi! not sure I follow the question unfortunately. Withdraw from where to where? can you elaborate on the example a little?
@signal carbon I want to subscribe to pay the first installment of 500, and the next 250
@mystic crescent so you want to create a subscription that does that?
That's not built-in, but you can get that behaviour by using a SubscriptionSchedule to move the subscription from the $500 to the $250 price automatically https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases
@signal carbon do I not need to create subscriptions for subscriptionSchedules?
yes, but I thought that's what you are trying to do?
you said you wanted to "subscribe"
that's a very broad question so it's hard to answer, schedules just manage subscriptions, and subscriptions do support 3D Secure , https://stripe.com/docs/billing/migration/strong-customer-authentication has some general info
- need create subscribe
- create subscriptionSchedules to subscribeId
- 3D Secure activate subscribe ?
@mystic crescent That's still pretty high level, so it depends on exactly how you create those subscriptions & schedules. If you're creating the subscriptions first and planning future changes, then 3DS would be handled as part of confirming the initial payment intent if you were following our guide:
https://stripe.com/docs/billing/subscriptions/build-subscription (either with Checkout or using Elements)
then setting up the schedule for future changes this is largely unaffected, but you'd always need to handle recovery for failed payments:
https://stripe.com/docs/billing/subscriptions/overview#settings
@bitter imp Understand how can I confirm subscriptionSchedules?
if there is no "NEXT_ACTION" at creation
Can you share an example schedule creation request? You said you're creating the subscription first right?
@bitter imp confirm 3d-secure this
Can you share that creation request id? eg req_123 https://stripe.com/docs/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
@bitter imp req_9EZa9KwUUn3fCE
YOu've already set up the payment method provided, so you should be all set (pending future payment failures): https://dashboard.stripe.com/test/logs/req_yu8Lfh8b7wvJbn
the subscrition invoice is created in draft like a subscription renewal, you can go ahead an finalize it if you prefer, or wait for 1hr after creation and it should automatically finalize and pay using the payment method you set
and then the recovery flows i mentioned apply
@bitter imp I mean confirmation after payment method
👋 @mystic crescent I'm just hopping in since @bitter imp had to leave
What exactly are you confused about? If you're asking how to pay for a subscription/subscription schedule after it's been created, payment will be attempted automatically when you create a subscription with a schedule - that's not something you need to manually trigger
@inland sky check req_DbRwBN1bwkRSt8
after create subscription schedule, no subscription and 3d-secure confirmation link created
The subscription did get created, just not in the same request - it's su_1JjnfWKnG67zhbleK2S2RQHZ
With subscription schedules the subscription gets created AFTER the request to create the schedule
okay good, AFTER created subscription schedules and subscription, how confirm it in 3d-secure?
You only need to confirm it with 3D Secure if payment fails - you would listen for the invoice.payment_action_required event and then bring your customer back on-session. Alternatively, you could enable something in your settings so that customers are automatically emailed if their subscriptin payments require action (you'd set "Send a Stripe-hosted link for cardholders to authenticate when required" in your settings at https://dashboard.stripe.com/settings/billing/automatic)
hm,
when create subscribe, i have response with "clientSecret" and confrim this subscribe, right?
Sorry I missed this last message! When a subscription is created an invoice is created which may (or may not) need additional actions to complete payment. You only need to confirm when additional actions are needed
Being a subscription schedule isn't what controls whether additional actions are needed. The card+issuer is what determines it.
she has no further confirmation?