#tbhaxor.com
1 messages · Page 1 of 1 (latest)
hi! could you elaborate? I don't really follow. What exact details?
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?
Like we have https://stripe.com/docs/js/payment_intents/confirm_payment confirm payment. Do we have confirm subscription like feature in js sdk?
hmm it's the same function.
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements is the canonical guide
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!