#dineshkumar6419
1 messages · Page 1 of 1 (latest)
Hello! I don't think we have a specific example, but conceptually you'd just use the subscriptions API and pass in the customer + payment method ID you have https://stripe.com/docs/api/subscriptions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
For each subsequent purchase, is it possible don't have to go into Stripe card details put page to complete the purchase?
If the card is setup correctly for off-session purchases then typically it wouldn't need the customer to complete authentication in a UI
for above give me example with link , please
for this give me example with link , please
We talk about how to collect payment details with a setup intent here: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
subscriprion +save card for next purchase we can do?
If you're just asking whether you can create a Subscription with a saved card then the answer is yes
If you're asking how to create a Subscription for a customer that hasn't saved a card yet then that's a different answer
please give me reference link for this
I already gave you that answer when you first asked -
I don't think we have a specific example, but conceptually you'd just use the subscriptions API and pass in the customer + payment method ID you have https://stripe.com/docs/api/subscriptions/create
first purchase save the card details, next purchase use saved card details, example please
Again, I already explained to you how to do this at a high level
You'd create a Subscription using the customer + saved payment method
ok as per example https://stripe.com/docs/api/subscriptions/create can we set redirecturl after the payment success or cancel ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and also can we do? recurring item and non recuring in single payment
Let's take a step back for a second - why are you asking about a redirect url? Are you intending to create the subscirption with the saved payment method when your customer is on-session and then redirect them?
i am not sure, i will check more
Yeah I'd really recommend reading through our subscriptions documentation and deciding what you want to build. Right now you've been asking a lot about creating a subscription for a saved payment method, but also mixing in questions that seem more relevant to collecting payment for the first time from a customer
Hello! I'm taking over and catching up...
Customer A buying
Item A is recurring
item B is Non-recurring
both item need pay in single payment + if first time need save card and pay
same customer A again buying
Item C is recurring
item D is Non-recurring
both item need pay in single payment + using saved card details
above two scenario, which example i shoud use?
You can use Checkout for that, or you can build a custom payment page using the Payment Element to pay for the Subscription you create server-side. We don't have a guide that covers that specific scenario. The closest thing we have for Checkout would be this one: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout
And this one for a custom payment page you build: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
thanks, i will check your guide link.
but, i want don't to go every purchase stripe checkout page, only first purchase for customer will go stripe page?
Yes, with a Subscription the later recurring payments typically happen automatically without customer interaction.
it's fine.
correct
but again same/saved customer, subscribe the different product ,which is we don't go to the checout page, we can do this?
Yes.
if yes, please give me refernce link and example
We don't have a specific guide for that. You would need to create the Subscription and specify both the existing Customer and the attached Payment Method you want to use.
thanks, i will check.