How the money works
You are the merchant of record for the payment. Salesive never sees card data, never holds the funds and never moves money for you. Because the order was captured outside the platform’s own gateways, the platform fee is invoiced rather than withheld: the ledger reads theexternalProvider marker on the order
and accrues the fee from it. See platform billing.
The flow
1
Register your provider
PUT /api/v1/app/payment-provider with your app_ token. One provider per
installation. The row starts pending.2
Wait for review
An admin reviews the configuration, your licence and your sandbox. They set
the provider
active and the app paymentCapable. Only then does it appear
in a merchant’s payment settings.3
The merchant switches it on
They enable it in their payment settings. That writes the store’s own switch,
and checkout starts offering you.
4
Authorize a payment
When the shopper picks you, Salesive
POSTs to your authorizeUrl and sends
the shopper to the redirectUrl you return.5
Confirm with a webhook
When the money is captured, send
payments/authorized to the webhook URL
Salesive shows you. This is the only thing that marks the order paid.1. Register the provider
Every URL is checked against the same guard as app webhooks, at registration and
again before each call.
No OAuth scope is required for this route. It is your app’s own payment
configuration, not a write to store data. The gates that matter are
paymentCapable on the app and the provider’s status.pending. What the merchant agreed
to is the reviewed configuration, so a changed URL or name is reviewed again. You
cannot re-register your way past an admin kill switch.
GET returns your row. DELETE removes it and removes every store’s switch for
it at once. The fee ledger is untouched, because an accrual is written from the
order, not from this row.
2. Authorize a payment
When a shopper chooses your method, Salesive calls yourauthorizeUrl with a
signed POST:
amount is in minor units of currency. returnUrl is a hint for where to
send the shopper afterwards; it is never proof of payment.
Answer with a redirect:
https. providerReference is your own identifier for this
charge, and it is what you can quote back to yourself later.
3. Confirm or fail with a webhook
Salesive gives you a webhook URL when the provider is registered:X-Salesive-Signature is an HMAC of the raw request body signed with the app
secret for that installation’s environment. Verify it over the raw bytes before
parsing.
Your handler must be idempotent. A retried
payments/authorized must not
double-apply, and it will be retried if Salesive cannot reach you.
4. Refunds
The merchant asks from their dashboard. SalesivePOSTs to your refundUrl:
200 to accept the request, then confirm with payments/refunded on the
webhook when the money is actually back with the shopper. The session stays
authorized until you confirm, so a refund you accept and never complete is
visible as an open session rather than a silent success.
Phase 1 supports full refunds only. Partial refunds are reserved in the
contract and always refused today.
Idempotency, retries and reconciliation
- Every session is unique per provider and idempotency key, so a double-click at checkout cannot create two charges for one order.
- Treat
payments/authorizedas at-least-once. Key your own writes onsessionId, not on arrival time. - A session that is never confirmed stays open. Reconcile open sessions with your own charge list rather than assuming the webhook always arrives.
Test mode
SettestMode: true and point the three URLs at a sandbox that fails on demand.
Review requires a working test mode, including a failed payment and a refund. A
testMode provider is still gated by status and by the app being active.
Checklist before review
- All four URLs are public https and pass the URL guard.
-
authorizeUrlanswers with an httpsredirectUrl. -
webhookUrlverifiesX-Salesive-Signatureover the raw body. -
payments/authorizedis idempotent. -
payments/failedis sent, with a short reason, when a payment will not complete. -
refundUrlaccepts a full refund andpayments/refundedconfirms it. - Your sandbox can produce a success, a failure and a refund on demand.

