Settle payment
Endpoints
Settle Payment
Complete a pending payment with a settlement proof
POST
Settle payment
After creating a payment via
/payment/create, payment apps submit a signed proof from an accepted settlement provider to complete the payment.Flow
- Payment app creates pending payment via
/payment/create - Payment app transfers funds to your OCID via an accepted settlement provider
- Payment app receives signed proof from the settlement provider
- Payment app submits proof to your
/payment/settle - You verify proof, credit merchant, and return your own signed proof
Implementation
Validation Checklist
Before completing a payment:- Payment exists and matches the
txid - Payment hasn’t expired
- Payment is in
pending_settlementstate - Proof issuer is in your
acceptslist - Proof signature is valid
- Proof recipient is your OCID
- Proof amount matches payment amount
Response
On success, return your signed proof that the payment app can also use:Headers
Caller's OCID (Opencharge ID)
Unix timestamp in seconds
Unique request identifier for replay protection
secp256k1 ECDSA signature of the canonical request
Body
application/json