Skip to main content
POST
/
api
/
v1
/
payment-gateways
/
{gateway}
/
session
JavaScript
import CheckoutIntents from 'checkout-intents';

const client = new CheckoutIntents({
  apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted
});

const paymentGatewaySession = await client.paymentGateways.createSession('basis-theory');

console.log(paymentGatewaySession.container);
{
  "container": "<string>",
  "sessionKey": "<string>",
  "gateway": "basis_theory"
}

Authorizations

Authorization
string
header
required

Rye API key

Path Parameters

gateway
enum<string>
required

The payment gateway to create a session for

Available options:
basis-theory

Response

Gateway-specific session credentials

container
string
required
sessionKey
string
required
gateway
enum<string>
required
Available options:
basis_theory