checkout_api permission. Redirect the buyer to the url in the response. Use the API quickstart for a complete request.
Choose what to sell
Sendproduct_ids for items from your store. Paysum uses the catalog price, checks stock, and uses the product’s delivery settings.
line_items instead for custom goods or services. Set the prices yourself. Use the checkout.session.completed webhook to deliver the order.
Session lifecycle
Sessions start aspending and end as completed, cancelled, or expired. The default expiry is 24 hours. Set expires_in_seconds or expires_in_hours to change it. Use expired_url to send buyers to another page after expiry.
Set success_url and cancel_url to control where the buyer returns. A browser redirect does not confirm payment. Verify a signed webhook or get the session status on your server before you deliver.
Customize checkout
Sethide_navbar and hide_footer to hide parts of the page. Set disable_coupons or disable_gift_cards to stop buyers from applying those codes. See Create a checkout session for the full request options.