#Soyra

1 messages · Page 1 of 1 (latest)

toxic parrot
#

Hi there. You don't need to get card info from customers (so that you don't need to worry about PCI compliance). When the customer visit a checkout page, they will input the card details on the page.

keen wadi
#

Thanks for your answer. Yes I saw that, but how do we know if the payment was successful or not ?

toxic parrot
#

You should check the Checkout session's payment_intent object and see if its status is succeeded

keen wadi
#

So when the customer exit the checkout session, if the payment was successful it will create the subscription ?

toxic parrot
#

It depends. If the subscription has trial then no payment is needed for the 1st invoice.

keen wadi
#

Ok so if I understood, when the customer will go on the checkout session, he will enter his information. Then, he submit and as I don't have free trial, the subscription is created

#

Or maybe is it created in a webhook event ? I saw there is an event for that

toxic parrot
#

You can listen to webhook events and get notified when things happen. For instance you can listen to payment_intent.succeeded when a payment is successful.

keen wadi
#

Ok thanks for you help 👍