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 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
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:
HMAC_SHA512(customer + 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
customer
string聽
required
User ID. The user's email or phone number or the user's unique Repsol registration identifier may be sent.
amount
number聽
required
Charge amount
commerceId
string聽
required
Identifier of the merchant making the charge. Provided by Klikin.
callbackUrl
string聽
required
paymentId
string聽
required
Identifier of the operation in the trade. It must be unique per transaction.
items
array聽[object {5}]聽
optional
units
integer聽
required
Number of items
description
string聽
required
Item description
unitPrice
integer聽
required
Price item
totalPrice
integer聽
required
Price total
generateCashback
boolean聽
required
Indicates whether cashback is generated or not, by default, true.
signature
string聽
required
Example
{
  "customer": "Loraine_Hessel@example.com",
  "amount": 300,
  "commerceId": "f86edbb51682cee8fcdb13ff",
  "callbackUrl": "https://whirlwind-starter.org",
  "paymentId": "202305248569",
  "items": [
    {
      "units": 2,
      "description": "Electronic Rubber Computer",
      "unitPrice": 100,
      "totalPrice": 200,
      "generateCashback": false
    }
  ],
  "signature": "a77eebdac8f8b8dbe0fdf8d3"
}

Responses

馃煝201Created
application/json
Body
_id
string聽
required
Waylet payment identifier
Example
{
  "_id": "bf48b9abf84cd8cd61cc40d7"
}
Modified at聽2024-08-30 07:51:42
Previous
馃嚞馃嚙 OpenWaylet
Next
Payment start URL