Skip to main content
POST
/
transactions
/
payment
Create hosted payment
curl --request POST \
  --url https://api.orafi.app/v1/transactions/payment \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "amount": 100,
  "currency": "USDC",
  "network": "SUI",
  "customer": {
    "fullname": "John Doe",
    "email": "john@example.com"
  },
  "customerId": "cmxsds23...",
  "txRef": "cmxsds...",
  "redirectUrl": "www.example.com"
}
'
{
  "success": true,
  "message": "Payment created successfully",
  "data": {
    "id": "payment_abc123",
    "amount": 100,
    "amountInUSDC": 100,
    "token": "USDC",
    "depositAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "txRef": "tx_ref_123",
    "status": "CONFIRMED",
    "paymentMethod": "HOSTED_CHECKOUT",
    "redirectUrl": "https://example.com/success",
    "paylinkId": "<string>",
    "customerId": "<string>",
    "transactionId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.orafi.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

API key for merchant authentication required for most endpoints

Body

application/json
amount
number
required

Payment amount

Example:

100

currency
string
required

Payment currency

Example:

"USDC"

network
enum<string>
required

Network for payment

Available options:
SUI
Example:

"SUI"

customer
object

Customer information (optional)

customerId
string

Existing customer ID (optional)

Example:

"cmxsds23..."

txRef
string

Unique transaction reference

Example:

"cmxsds..."

redirectUrl
string

URL to redirect after payment

Example:

"www.example.com"

Response

Payment created successfully

success
boolean
Example:

true

message
string
Example:

"Payment created successfully"

data
object