This is the method behind the recommended integration: your backend creates the session with your secret key, and the SDK opens it in the browser. The session ID can come from anywhere — a
createSession() call, or your own API.Parameters
string
required
The session ID to open. Returned by
POST /session or by createSession().Examples
Recommended: session created by your backend
Session created by the SDK
Subscriptions are opened the same way: your backend creates the session with a
subscription object and your secret key, and openSession() takes the customer to the payment page. See the Subscriptions guide.