#kelputoo
1 messages · Page 1 of 1 (latest)
Stripe Checkout page normally will collect the card then start a Subscription. If you want to create Subscription first, you can try a Checkout Session Setup mode then collect the payment method to set into the Subscription
But will that stil be a charge automatically subscription?
How would that work? Can I provide my code?
Also tell me one thing, that checkout session setup will store the payment method in the customer?
like if he adds a card to the checkout session setup, will the card information be stored?
lets take a step back, can you explain why you want to create the subscription, and then have the customer pay from the pending invoice page?
Why not just have the customer pay via the Checkout page which will automatically create the Subscription at the same time?
Im using .NET, and for some reason i couldnt put it to work, and the only why i found was to create a subscription and then find pending invoices in that subscription and give the user a url to pay the invoice.
Im very new to this Stripe.NET Library, and im still learning how to use it correctly.
have you tried taking a look at our example here? https://stripe.com/docs/billing/quickstart?lang=dotnet&client=html
The thing is, i really wanted to avoid using HTML and JS. The platform that im using (WiseJ), is not the best to handle that... It handles good the .NET Library.
The way i have the code is working when is not charge automatically, the only thing is that, when its a charge automatically subscription it asks for payment methods, and the thing is here, why ask for s payment method if im redirecting the user to pay the invoice to s url where he can specify the payment method?
I'm sorry but I don't quite understand what you just mentioned
when its a charge automatically subscription it asks for payment methods - do you have the request id where it's "asking for payment methods"?
I think want me to send?
i don't understand what you mean by "I think want me to send?"
Imagine this scenario, im creating a stripe customer, that stripe customer will pay for a subscritpion, that subscription has a collection mode set as "charge_automatically". When the subscription is set to that collection mode, it throws an "error" when creating it. The "error" is: "This customer has no attached payment source or default payment method"
I understand this, however, im redirecting the user to a URL to pay it. That url is a Hosted Invoice URL, where the user can specify how to pay (through card, paypal etc.).
So, i wonder if there is any option to bypass that "error" without actually attach anything to that customer, and the stripe checkout does that attachment job for me automatically.
try creating the subscription with payment_behavior=default_incomplete : https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think it worked.. Will this be a charge automatically still, right?
yes, collection_method will still be charge_automatically
I understand now, the difference is that the subscription starts incomplete
so it doesnt require any forced payment smth like that
and the user can normally pay the invoices
that's what i was looking for
amazing
i got one more question
if the user chooses paypal, will it still be charged automatically? And where are the funds going to? TRo my paypal? Or stripe?
i have this configured
you might want to take a look at this guide : https://stripe.com/docs/payments/paypal/choose-settlement-preference
Ok thank you, will read.
Just one more and last question, sorry, after the payment is made, the subscription is not "incomplete" anymore right?
I will