Skip to main content
POST
/
i
/
{token}
/
checkout-session
Create payment checkout session
const options = {method: 'POST'};

fetch('https://api.dolfinai.co/i/{token}/checkout-session', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "clientSecret": "<string>",
  "publishableKey": "<string>",
  "connectedAccountId": "<string>",
  "currency": "<string>",
  "amount": 123
}

Path Parameters

token
string
required

Response

OK

clientSecret
string
required
publishableKey
string
required
connectedAccountId
string
required
currency
string
required
amount