Waylet Pay
  1. 馃嚞馃嚙 OpenWaylet
Waylet Pay
  • 馃嚜馃嚫 OpenWaylet
    • Inicio de cobro
      POST
    • Cancelaci贸n de cobro
      POST
    • Devoluci贸n de cobro
      POST
    • Devoluci贸n de cobro V2
      POST
    • Solicitud de url de inicio de pago
      POST
    • Inicio de cobro con QR
      POST
  • 馃嚞馃嚙 OpenWaylet
    • Start payment
      POST
    • Payment start URL
      POST
    • Start QR payment
      POST
    • Payment refund
      POST
    • Payment refund V2
      POST
    • Cancel payment
      POST
  1. 馃嚞馃嚙 OpenWaylet

Payment start URL

Develop Env
https://pre.wayletlabs.com/api
Develop Env
https://pre.wayletlabs.com/api
POST
https://pre.wayletlabs.com/api
/openwaylet/web/v1/transactions
Callbacks
When the operation is finished a POST request will be sent to the callbackUrl.

Callback signature calculation#

The signature that will send the request to the API will be calculated in the following way (in pseudo-code):
HMACSHA512(paymentId + wayletPaymentId + status + amount)
using a secret that will be provided by Klikin for test environments.
POST {$request.body.callbackUrl}
CampoDescripci贸n
paymentIdTrade operation identifier
wayletPaymentIdWaylet operation identifier matching the identifier returned in the request
statusYou may receive one of the following values: PAID, REFUSED or CANCELED
errorCodeIf status = REFUSED, you receive the error code
errorDescriptionIf status = REFUSED, you receive the error description
amountAmount requested to be collected
signature

Request

Authorization
Add parameter in header
x-openwaylet-apikey
Example:
x-openwaylet-apikey: ********************
Body Params application/json
externalId
string聽
required
Payment identifier. Must be unique for any given commerceId
commerceId
string聽
required
Waylet commerce identifier. Will be provided by Klikin.
amount
string聽
required
Amount to be charged.
callbackUrl
string聽
required
Callback URL that will be invoked when payment ends.
urlOk
string聽
required
URL for redirection on successful payments.
urlKo
string聽
required
URL for redirection on failed payments.
urlClose
string聽
required
URL for redirection when user closes this window.
Example
{
  "externalId": "20230405126789",
  "commerceId": "edfdaaeb20edea2bb93aa0a2",
  "amount": "210",
  "callbackUrl": "http://pointed-hire.name",
  "urlOk": "https://calculating-bootie.name",
  "urlKo": "http://constant-dog.org",
  "urlClos": "https://deafening-ball.com"
}

Responses

馃煝200OK
application/json
Body
url
string聽
required
Open Waylet URL to start the payment.
Example
{
  "url": "https://unnatural-politics.info"
}
Modified at聽2024-06-17 11:30:24
Previous
Start payment
Next
Start QR payment