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

Start QR payment

Develop Env
https://pre.wayletlabs.com/api
Develop Env
https://pre.wayletlabs.com/api
POST
https://pre.wayletlabs.com/api
/integrations/openwaylet/v1/payments/start/qr
This endpoint starts the payment process that the user must finish on Waylet app.
Successful responses will have 201 HTTP status and contain the Waylet identifier for the payment.

Signature#

API requests needs a signature:
HMACSHA512(qrContent + amount + commerceId + paymentId + callbackUrl)
using a secret that will be provided by Klikin for test environments.
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

Example
{
    "qrContent": "fbcb80a6ca299a2b7b8dc4ed",
    "amount": 300,
    "commerceId": "2db2b0eaff308cb7bc3dabb3",
    "callbackUrl": "https://soft-temporary.net",
    "paymentId": "202305248569",
    "items": [
        {
            "units": 2,
            "description": "Small Granite Mouse",
            "unitPrice": 100,
            "totalPrice": 200,
            "generateCashback": false
        }
    ],
    "signature": "d5c5af0d7ef3c22da4d2accc"
}

Responses

馃煝201Created
application/json
Body

Example
{
    "_id": "bf48b9abf84cd8cd61cc40d7"
}
Modified at聽2024-08-30 07:51:51
Previous
Payment start URL
Next
Payment refund