Waylet Pay
Light Mode
Payment start URL
POST
/openwaylet/web/v1/transactionsCallbacks
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}
Campo | Descripci贸n |
---|---|
paymentId | Trade operation identifier |
wayletPaymentId | Waylet operation identifier matching the identifier returned in the request |
status | You may receive one of the following values: PAID, REFUSED or CANCELED |
errorCode | If status = REFUSED, you receive the error code |
errorDescription | If status = REFUSED, you receive the error description |
amount | Amount requested to be collected |
signature |
Request
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
OK(200)
HTTP Code:聽200
Content Type :聽JSONapplication/json
Data Schema
url
string聽
required
Open Waylet URL to start the payment.
Example
{
"url": "https://unnatural-politics.info"
}
Last modified: 6 months ago