LUXON API
- Integration checklist
- API Guide
- Authentication
- Error Handling
- Transactions
- Create Payment
- Create Pay-out
- Get Transaction
- Cancel Payment
- Refund Payment
- Resend Transaction
- Two Step Transactions
- Create Payment
- One Click Payments
- Create One-click Agreement
- Create One-click Payment
- Information
- Check Transactions
- Get Balances
- Webhooks
- Transactions Statuses
Create Payment
Create payment allows a merchant to initiate a deposit of funds from a user.
merchantTransactionId
A Unique ID to identify the transaction.
merchantUserId
A unique ID to identify the user.
redirectUrl
The URL we redirect the customer to after the payment is completed.
comment
A text comment that accompanies the deposit (visible to the user and merchant).
amount
A positive integer in cents representing how much the user wishes to deposit.
e.g. 100 EUR would be 10000 / 50 USD would be 5000
currency
The ISO 3 letter currency code in lowercase, see the supported currency list for details.
REQUEST POST .../api/v1/merchant/payment
{
"merchantTransactionId": "string",
"merchantUserId": "string",
"redirectUrl": "string",
"comment": "string",
"amount": number,
“currency”: “String”
}
Returns
transactionId
A unique Luxon transaction identifier that can be used as a reference in other API calls.
transactionUrl
The URL a user should be redirected to so they can authorise the payment.
status
A status object with the results of the call.
Notes
If user does not complete the transaction after 10 minutes, transaction is EXPIRED, and merchant gets corresponding webhook notification.
Please refer to the webhook page here for details on how to retrieve a transaction status.
Response
{
"transactionId": "string",
"transactionUrl": "string",
"status": {
"code": "string", "message": "string"
}
}