#tlalco-subscription

1 messages · Page 1 of 1 (latest)

trim light
#

hello, what doc are you referencing?

worthy depot
#

Hi

#

That is the code I have until now.

trim light
#

you seem to be missing a major part there

worthy depot
#

The thing is im not sure how to do it since in that example it is being done in the front entd

#

fornt end*

trim light
#

yeah a frontend portion is mandatory to create a Subscription

#

you need to use Stripe.js or Elements in your frontend

worthy depot
#

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

trim light
#

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

worthy depot
#

Why isnt the first one automatically charged?

#

If I added the default payment method when I created the subscription

trim light
#

because of payment_behavior param, the first Invoice can require authentication client-side so you need to confirm() it in your frontend

worthy depot
#

I did the confirmation on the back end. Could that be problem?

trim light
#

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

worthy depot
#

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

trim light
#

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

worthy depot
#

Im in Mexico

trim light
#

do payments in MX require 2-factor authentication?

worthy depot
#

i dont think so

#

Ill live it like that for now and see how it goes

#

Thanks!

#

But