#cian54
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
would you mind sharing the request ID where you updated the schedule please?
I'm not sure I have one right now, I will loock for it in the meantime here is the params I pass when creating a subscription: customer: customer.id, coupon: subscriptionCoupon, collection_method: "charge_automatically", payment_settings: { save_default_payment_method: "on_subscription" }, payment_behavior: "default_incomplete", expand: [ "latest_invoice.payment_intent" ], items: [{ price: price.id }],
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
yes I was able to find it
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
right?
you need to use https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior always_invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, and that would make the update fail if the payment doesn't succeed ?
the update will happen anyways, but it will create an invoice
and internally you should rely on the invoice.paid event
when listening to the webhook events
in order to provide the service
Understand is there a way to know if the paid event is update or creating?
yes
the billing_reason parameter
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
which billing reason should I use.
billing_reason is an enum, its values are explained in the link I shared
is it "subscription_update"
yes