#cian54

1 messages ยท Page 1 of 1 (latest)

cursive sparrowBOT
hushed bloom
#

๐Ÿ‘‹ happy to help

#

would you mind sharing the request ID where you updated the schedule please?

wraith flame
#

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 }],

hushed bloom
wraith flame
#

sub_1NAyWhFOCsUTyYwWcT6opV6r

#

req_4OraUbpCtcuhM9

hushed bloom
#

yes I was able to find it

#

right?

wraith flame
#

ok, and that would make the update fail if the payment doesn't succeed ?

hushed bloom
#

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

wraith flame
#

Understand is there a way to know if the paid event is update or creating?

hushed bloom
#

yes

#

the billing_reason parameter

wraith flame
#

which billing reason should I use.

hushed bloom
#

billing_reason is an enum, its values are explained in the link I shared

wraith flame
#

is it "subscription_update"

hushed bloom
#

yes