PDT (Payment Data Transfer)

URL

Production:  https://endpoints.yenepay.com/api/verify/pdt/  
Sandbox: https://testapi.yenepay.com/api/verify/pdt/ 

Description

Checks the latest status of a payment order

Method

POST

Headers

Content-Type: application/json

Parameters

{
requestType (string): the type of request being sent to the endpoint. Should be set to “PDT
pdtToken(string): a request authentication token that is assigned to a YenePay merchant account can be found on the Settings page of YenePay’s account manager.
transactionId(string): a unique identifier id of the payment transaction that is set on YenePay’s platform. This id can be obtained from your SuccessUrl or IPNUrl endpoints.
merchantOrderId(string): the order id for this transaction that is set on your platform.
}

Example Request:

{
"requestType":"PDT",
"pdtToken":"P46Mzegzeba5G1",
"transactionId":"84778480-b411-4bf3-b89f-10fa65ab2ca2",
"merchantOrderId":"53"
}

Response

Success Response: 200
Body:
{
"result=SUCCESS&TotalAmount=1.00&BuyerId=37b20de1-5e1f-443f-b575-3ea79dc1b9f2&MerchantOrderId=53&MerchantCode=0325&MerchantId=02e1aaa5-ed29-408e-a24b-eddd665c3e8f&TransactionCode=8092&TransactionId=84778480-b411-4bf3-b89f-10fa65ab2ca2&Status=New&Currency=ETB"
}

Was this article helpful to you? Yes No

How can we help?