Execute offer payment
The request is designed to update an existing offer without charging the customer. This request is useful when you need to modify the parameters of an existing offer, such as the amount, currencies, or expiration date, before the client agrees and completes the actual payment transaction. It allows you to adjust the offer details without affecting the client's funds.
After confirming the phone number or after user authorization, you will receive an access_token. You need to enter this access_token in the
Token
field
This endpoint is accessible for
KYC_1
level and higher
The body parameters
You offerId
can be obtained using the endpoint POST /v3/payin/offer .
Request Sample: cURL
At the time of sending the request, the curl command should be as follows:
curl --request POST \
--url https://api.vault.sandbox.testessential.net/v3/payin/pay/offerId \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI3Njg0YWIwNi04NTkyLTQzYjItYmI4ZC1jYzc3YWE4NjY1NGIiLCJleHAiOjE3MTcwNjE0NjgsImlhdCI6MTcxNjk3NTA2OH0.R9q3ESQy0dZGPRiwWKslYuwAsH2kCOWSwL8BTA6pXOk' \
--header 'content-type: application/json' \
--data '
{
"fingerprint": {
"timezone": -180,
"browserColorDepth": 24,
"browserLanguage": "en-US",
"browserScreenHeight": 900,
"browserScreenWidth": 1600,
"browsertz": -180,
"os": "Linux",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0",
"browserJavaEnabled": false,
"browserJavascriptEnabled": true,
"browserAcceptHeader": "/"
},
"cardCVV": "333"
}
'
After entering the phone number and password into the respective fields, you need to click the Try It!
button.
This action initiates the process of sending data to the server and receiving a response from the API using the provided credentials.
Response Example
Successful execution of the request indicates that the operation was successful.
{
"successUrl": "https://crpt-backend-main-service.sandbox.testessential.net/v3/payin/result/success?offerId=11549",
"failUrl": "https://crpt-backend-main-service.sandbox.testessential.net/v3/payin/result/success?offerId=11549",
"cancelUrl": "https://crpt-backend-main-service.sandbox.testessential.net/v3/payin/result/success?offerId=11549",
"authLink": "https://pci-gw-test.praxispay.com/site/process/d0JCM2Mvd0pTbk96a0dzQ1crRkZrUT09",
"offerId": 7404,
"transactionStatus": "Wrong response from provider",
"transactionStatusCode": 305,
"originalTransactionStatus": "Wrong response from provider",
"originalTransactionStatusCode": 305,
"paymentMode": "debit",
"maskedPan": "490742****3896",
"transactionDate": "2024-03-12T11:23:20",
"transactionAmount": "32.09",
"cardCountryCode": "US",
"cardCountryName": "USA",
"cardBankName": "WINSTON-SALEM FEDERAL CREDIT UNION"
}
To obtain additional information about the RESPONSE
, you need to click on the Headers
button.
This will allow you to view the server response headers and gain a more detailed understanding of the data returned in response to your request.
Updated 5 months ago