Create payment allows a merchant to initiate a deposit of funds from a user.

Parameters


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.


brand

An optional string that can be used to send identifying information for the merchant to allow grouping of transactions.


useBrand

An optional boolean that when set to true will show the user the contents of the brand string in place of the merchant name registered with Luxon.


 

REQUEST POST .../api/v1/merchant/payment

{
"merchantTransactionId": "string",
"merchantUserId": "string",
"redirectUrl": "string",
"comment": "string",
"amount": number,
"currency": "string",
"brand": "string"
"useBrand": boolean
}

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"
}
}