← Back to payments

New Payment Intent

Creates a payment intent on a connected account with the 4% TERRA VERDE platform fee applied automatically.

API Error

Invalid API Key provided: sk_live_******E_ME

No accounts with charges enabled. Enable at least one account first.

How it works

  1. 1You create a PaymentIntent on behalf of a connected Stripe account.
  2. 2Stripe automatically deducts 4% as an application_fee_amount and credits it to the MONDAX platform balance.
  3. 3The clientSecret is passed to your checkout front-end via stripe.confirmPayment().
  4. 4On success, your /api/webhooks endpoint receives payment_intent.succeeded for auditing.

API endpoint

POST /api/payment-intent
{
  "amount": 10000,        // cents
  "currency": "usd",
  "connectedAccountId": "acct_xxx"
}