Create One-click Agreement

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 One-click Agreement

One-click payments allow a user to link their Luxon wallet to a merchant account. Once the link is created merchants will be able to initiate transfers on behalf of the user, avoiding the need for the user to log in and making the process much faster.

One-click can be set up when creating a payment using either the one-step or two-step method.

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.


createBillingAgreement

a boolean that specifies the creation of an agreement between the user and merchant for one-click payments.


 

Request Post .../api/v1/merchant/payment

{
"merchantTransactionId": "string",
"merchantUserId": "string",
"redirectUrl": "string",
"comment": "string",
"amount": number,
"currency": "String",
"createBillingAgreement": 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


 

Response

{
"transactionId": "string",
"transactionUrl": "string",
"status": {
"code": "string", "message": "string"
}
}