Skip to main content
POST
/
transactions
/
payment
/
create
Create hosted payment
curl --request POST \
  --url https://api.orafi.app/v1/transactions/payment/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "amount": 123,
  "customer": {
    "fullname": "<string>",
    "email": "<string>"
  },
  "txRef": "<string>",
  "type": "PAYMENT_LINK",
  "redirectUrl": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "amount": 123,
    "amountInUSDC": 123,
    "token": "<string>",
    "depositAddress": "<string>",
    "txRef": "<string>",
    "status": "INITIALIZED",
    "paymentMethod": "PAYMENT_LINK",
    "redirectUrl": "<string>",
    "paylinkId": "<string>",
    "customerId": "<string>",
    "transactionId": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
amount
number
required

Amount in the smallest unit

customer
object
required
txRef
string
required

Transaction reference

type
enum<string>
required
Available options:
PAYMENT_LINK,
HOSTED_CHECKOUT
redirectUrl
string

Response

201 - application/json

Payment created

success
boolean
message
string
data
object