#tbhaxor.com

1 messages · Page 1 of 1 (latest)

maiden yewBOT
long edge
#

hi! could you elaborate? I don't really follow. What exact details?

leaden light
#

Like we can get payment details from the js sdk

#

Can we get the active subscription on the client (frontend) without actually hitting the server side api or exposing secrets on the client side?

long edge
#

hmm it's the same function.

#

you create a Subscription on the backend; the Subscription has a latest_invoice, the Invoice has a payment_intent, and you use that confirmPayment() function on that PaymentIntent, on the frontend, to pay the first Invoice and that starts the Subscription.

#

so I'd suggest starting with that!

leaden light
#

Yeah got it

#

Its an indirect way to confirm subscriptions

#

I will work on it. Thanks