#fedoraus
1 messages · Page 1 of 1 (latest)
hi! well subscriptions by default don't cancel/terminate, they renew forever until you directly call the API to cancel them or if your settings for failed payments cancels them automatically(https://stripe.com/docs/billing/subscriptions/overview#settings) .
if im using stripe for chrome extension, can which kind of success and cancel url i can use?
hmm I don't think you can(like you can't use a chrome-extension:// URL). I would suggest redirecting the user to your website and doing the payment there, not inside an extension(we don't really directly test/support that environment)
about urls, i mean can i make 2 html pages success url and cancel url paste them in checout session, cuz stripe checkout session opens in chrome window
so can i paste like
success_url: 'success.html',
cancel_url: 'cancel.html',
no, they need to be public, complete https://<domain>/<path> links
but about subscriptions, i know, that subsriptions dont't cancel/ terminate, but i think stripe has webhook in case of termination of the subscription without renewing the payment, sends me this information.
yes, for example we would send a customer.subscription.deleted webhook event when a subscription has been cancelled
but if subscription exists, but customer doesnt pay for it
like he subscribed, paid for it, a month has passed, there is a subscription, but he did not pay for it
the the invoice payments will fail, and after a certain number of failures the subscription might cancel. Worth reading though the docs at https://stripe.com/docs/billing/subscriptions/overview#settings and https://stripe.com/docs/billing/subscriptions/overview#failed-payments etc
The customer.subscription.updated event would fire to reflect the status field changing
oh, and which kind of info i can bring from this event??
It'll be the Subscription object: https://stripe.com/docs/api/subscriptions/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.