Create a payment session that captures a new off-session payment method for this customer without charging. The response contains a hosted-page URL — redirect the customer to it, or load it inside an iframe (when iframed, the page reports outcomes via postMessage to the parent window).
Documentation Index
Fetch the complete documentation index at: https://docs.paygentic.io/llms.txt
Use this file to discover all available pages before exploring further.
API key authentication
The unique identifier of the customer. Unique identifier for a customer
^cus_[a-zA-Z0-9]+$URL the customer is redirected to on success. When the page is iframed, success is reported via postMessage instead.
URL the customer is redirected to on failure. When the page is iframed, failure is reported via postMessage instead.
Arbitrary key/value pairs to attach to the session.
Payment session created successfully
paymentSession Payment session identifier (e.g. ps_...).
payment, setup pending, processing, completed, failed, expired, cancelled Hosted page URL. Redirect the customer here, or load it inside an iframe — when iframed, the page reports outcomes via postMessage (payment_success / payment_error) to the parent window.