#tlalco-subscription
1 messages · Page 1 of 1 (latest)
Hi
That is the code I have until now.
did you do all of step 6? https://stripe.com/docs/billing/subscriptions/build-subscription?ui=elements#collect-payment
you seem to be missing a major part there
The thing is im not sure how to do it since in that example it is being done in the front entd
fornt end*
yeah a frontend portion is mandatory to create a Subscription
you need to use Stripe.js or Elements in your frontend
Im using elements to get the credit card info into a token
payment_intent = stripe.PaymentIntent.retrieve(payment_intent_id)
resp = payment_intent.confirm()
I added that to my code and the first invoice was charged
However im not sure if the next invoice will be automatically charged to the correct credit card
im not sure if the next invoice will be automatically charged to the correct credit card
it will be automatically charged
the Subscription will automatically create Invoices under the hood on your recurring intervals
Why isnt the first one automatically charged?
If I added the default payment method when I created the subscription
because of payment_behavior param, the first Invoice can require authentication client-side so you need to confirm() it in your frontend
I did the confirmation on the back end. Could that be problem?
it works some of the time
other times that confirm will result in an authentication requried status, then you have to confirm on your webpage anyways
so the recommended thing is to confirm on the client
the doc I linked you tells you that
I am using that library and it doesnt seem to have anything regarding confirming
I guess Im going to leave it like that for now and wait to see if I have any problems.
Thanks
which country are you based? US or in EU?
I'm 90% certain that Vue package does have confirmCardPayment()
as a function
as it uses Stripe.js under the hood
Im in Mexico
do payments in MX require 2-factor authentication?