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
}Creates a Stripe PaymentIntent on the organisation’s connected account via direct charge. Revenue share is applied via application_fee_amount. Returns the client_secret for Stripe.js to confirm the payment on the hosted payment page.
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
}Documentation Index
Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt
Use this file to discover all available pages before exploring further.