#Shayan-subs-trials
1 messages · Page 1 of 1 (latest)
This is something you'd have to manage yourself - we don't have anything that would automatically check whether a customer already signed up and cancelled a free trial
and if he completes the trail and paid for a subscription, and after a duration cancels it, and sometime in future get a subscription again, he'll be given a free trail again?
Yes - you'd have to check for yourself whether they signed up with you before by listing all the subscriptions for that customer (see https://stripe.com/docs/api/subscriptions/list#list_subscriptions-customer)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks a lot @zinc zephyr
one more thing, I've added user's cards in stripe, how do I charge him with the subscription? do we do it before creating a subscription or after creating a subscription?
how to link that card with a subscription?
If the you set invoice_settings[default_payment_method] to the saved Payment Method then that should automatically use that card for all billing (subscriptions + invoices) related charges. Alternatively, you can just set default_payment_method on the Subscription to whichever payment method you want to use
and this can be done if the api is called from backend, or does the user need to verify the transaction by any OTP?
and you're awesome. I've spend quite sometime on figuring these things out but couldn't find any specific tutorials. Thanks again for your help.
If the Payment Method has been setup for future usage then you theoretically could create the Subscription from the backend, but there is always the chance that the bank/issuer will still decide OTP/authentication is needed and require you to bring the customer back on session to complete payment
got it, thanks @zinc zephyr