Create payment
Endpoints
Create Payment
Accept payment requests from third-party payment apps
POST
Create payment
Third-party payment apps use this endpoint when they don’t have a direct reserve account with you. They create a pending payment, then settle via an accepted settlement provider.
Two-Step Payment Flow
- Create payment - Payment app calls
/payment/createto create pending payment - Settle payment - Payment app settles via
/payment/settlewith a proof from an accepted settlement provider
Implementation
Settlement Providers
Thesettlement.accepts array tells the payment app which OCIDs you’ll accept proofs from:
- Have an account with one of these providers
- Execute a transfer to your OCID via that provider
- Submit the signed proof to your
/payment/settleendpoint
Order Information
If payment is for an order, include order details: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