#stellarloony-element
1 messages · Page 1 of 1 (latest)
Hi! If you use Stripe Elements on the front end to collect payment information, then you don't need to be PCI compliant! That's because Stripe Elements is using iframes hosted by stripe.
yes but how do i use the Elements for subscription? Elements need clientSecret.
We have a guide covering this here: https://stripe.com/docs/billing/subscriptions/build-subscription?ui=elements
The summary is:
- Create the subscription on the backend
- Retrieve the
subscription.payment_intent.client_secretand send it to your frontend - Then use Payment Element on the frontent with the
client_secretto collect the payment details
oh