amount. Add more details to fill in checkout for the customer, limit how they pay, or charge a method they saved before. Every option is listed in Payment intents.
Just the amount
The simplest case: all you need is the amount to charge. This is the most basic setup.- Situation: You want a customer to pay GMD 450, and you’re not adding a customer record or any other optional details.
- Request:
- Result: A Payment Intent is created, along with a link to the payment page where the customer pays.
Amount and customer
Here you add the customer who’s paying, on top of the amount. This ties the payment to a specific customer so it’s easier to keep track of.- Situation: You want to charge GMD 450 and link it to a particular customer.
- Request:
Amount, customer, and payment methods
A more specific setup: you set the amount, link a customer, and decide ahead of time which payment methods the customer can use. Handy when you want to limit things to certain methods.- Situation: You want to charge GMD 450, link it to a customer, and only allow a particular payment method.
- Request:
Amount, customer, and a specific saved payment method
Here you point to one of the customer’s saved payment methods by its ID. Useful when you want to charge a saved card or bank account directly.- Situation: You want to charge GMD 450, link it to a customer, and use a specific saved payment method from their account. This lets you charge a saved method straight away, which makes things quicker for returning customers.
- Request:
Next
Send the customer todata.payment_link, then confirm the payment with a webhook or by checking it.