Payment Sessions
Use a Yorlet-hosted payment page to accept a payment.
A Payment Session is a Yorlet-hosted payment page that lets you collect payments quickly and securely. It is simpler to integrate and dynamically handles 3D Secure for you.
curl https://api.yorlet.com/v1/payment_sessions \
-H "Authorization: Bearer {{API_KEY}}" \
-H "Content-Type: application/json" \
-d '{
"amount": 10000,
"currency": "gbp",
"customer": "{{CUSTOMER_ID}}",
"payment_method_types": ["card"],
"return_url": "https://example.com"
}'
Redirect your customer to the
url
returned in the response.{
"id": "ps_test",
"object": "payment_session",
...,
"url": "https://pay.yorlet.com/session/ps_test"
}
Last modified 2yr ago