10 posts / 0 new
Last post
brianclifton4666
Where did refund go?

Hi folks,

I noticed recently that the credit card refund method (the non-tagged version) is no longer linked to in the documentation. However, it still works and the original document is still up:
https://developer.payeezy.com/capturereversepayment/apis/post/transactions/%7Bid%7D

Is this method deprecated? If so, how should the "purchase" transactions (not done using auth) be reversed?

Thanks
Brian


pramodrao2872
Re: Where did refund go?

Hi Brian,

The non tagged version of the refund transaction is not deprecated. It's available in the url you have specified under Capture or Reverse a Payment section. Look for Refund tab.

 

https://developer.payeezy.com/capturereversepayment/apis/post/transactions/%7Bid%7D

Please Note: You will need to pass transaction_id parameter in the url as https://api-cert.payeezy.com/v1/transactions/{transaction_id}

The request body for non tagged version is shown below:

{
  "merchant_ref": "Astonishing-Sale",
  "transaction_type": "refund",
  "method": "credit_card",
  "amount": "1299",
  "currency_code": "USD",
  "credit_card": {
    "type": "visa",
    "cardholder_name": "John Smith",
    "card_number": "4788250000028291",
    "exp_date": "1020",
    "cvv": "123"
  }
}

let us know if you have additional questions.


pramodrao2872
Re: Where did refund go?

Additionally. The amount specified in the above refund request payload should match the original amount that was sent in purchase transaction.


brianclifton4666
Re: Where did refund go?

Why was it removed from the updated documentation? For example:
https://developer.payeezy.com/payeezy_new_docs/apis/post/transactions/%7Bid%7D-2

When you view this, the refund tab is the tagged refund :(


brianclifton4666
Re: Where did refund go?

Additionally, the tagged refund version of the refund keeps giving me a 400, bad request :( Here are the inputs from my tests:

1) First I do an authorization
https://api-cert.payeezy.com/v1/transactions
{
"merchant_ref": "6cfefe2e-b2bb-40d9-8bfa-e0f92e8e1403",
"transaction_type": "authorize",
"method": "credit_card",
"amount": "123",
"currency_code": "USD",
"credit_card": {
"type": "Visa",
"cardholder_name": "Bubba Smith",
"card_number": "4111111111111111",
"exp_date": "0120",
"cvv": "123"
}
}

This works, giving me the response:
{
"correlation_id": "228.1441120737034",
"transaction_status": "approved",
"validation_status": "success",
"transaction_type": "authorize",
"transaction_id": "ET118404",
"transaction_tag": "61056332",
"method": "credit_card",
"amount": "123",
"currency": "USD",
"cvv2": "M",
"token": {
"token_type": "FDToken",
"token_data": {
"value": "9968933353041111"
}
},
"card": {
"type": "Visa",
"cardholder_name": "Bubba Smith",
"card_number": "1111",
"exp_date": "0120"
},
"bank_resp_code": "100",
"bank_message": "Approved",
"gateway_resp_code": "00",
"gateway_message": "Transaction Normal"
}

2) Next I try to do a tagged refund:
https://api-cert.payeezy.com/v1/transactions/ET118404
{
"merchant_ref": "518993c4-29d9-45c8-a3be-0faf2d3923ff",
"transaction_tag": "61056332",
"transaction_type": "refund",
"method": "credit_card",
"amount": "123",
"currency_code": "USD"
}

This fails, giving me this response:
{
"correlation_id": "228.1441120856036",
"Error": {
"messages": [
{
"code": "400",
"description": "Processed"
}
]
},
"transaction_status": "Not Processed"
}

Your advice is appreciated :)


pramodrao2872
Re: Where did refund go?

Hi Brian,

For viewing our API docs, please click on Docs and Sandbox which takes you to the following url

https://developer.payeezy.com/docs-sandbox

This is the correct place that reflects all of our API Docs. The url you have specified above is deprecated. Not sure how you got this url. Please let us know if you are getting this url from a different location in our site and we shall update this link as needed.

Refunds can be made from a purchase transction. So, please make a purchase transaction first and then process a refund transaction based on transaction_id and transaction_tag generated from the purchase transaction.

VOIDs are applicable to authorize transaction. Please see below. I just processed a purchase transaction and a refund based off of this purchase. This was a tagged refund and it worked.

Best Regards,

Payeezy Team

Response from Purchase

{
  "correlation_id": "228.1441122047269",
  "transaction_status": "approved",
  "validation_status": "success",
  "transaction_type": "purchase",
  "transaction_id": "ET140019",
  "transaction_tag": "61057568",
  "method": "credit_card",
  "amount": "1299",
  "currency": "USD",
  "cvv2": "M",
  "token": {
    "token_type": "FDToken",
    "token_data": {
      "value": "2877648207138291"
    }
  },
  "card": {
    "type": "visa",
    "cardholder_name": "John Smith",
    "card_number": "8291",
    "exp_date": "1020"
  },
  "bank_resp_code": "100",
  "bank_message": "Approved",
  "gateway_resp_code": "00",
  "gateway_message": "Transaction Normal"
}

 

Refund Request

 

{
  "merchant_ref": "Astonishing-Sale",
  "transaction_tag": "61057568",
  "transaction_type": "refund",
  "method": "credit_card",
  "amount": "1299",
  "currency_code": "USD"
}

 

Refund Response

{
  "correlation_id": "228.1441122132406",
  "transaction_status": "approved",
  "validation_status": "success",
  "transaction_type": "refund",
  "transaction_id": "61057736",
  "transaction_tag": "61057736",
  "method": "credit_card",
  "amount": "1299",
  "currency": "USD",
  "cvv2": "I",
  "token": {
    "token_type": "FDToken",
    "token_data": {
      "value": "2877648207138291"
    }
  },
  "bank_resp_code": "100",
  "bank_message": "Approved",
  "gateway_resp_code": "00",
  "gateway_message": "Transaction Normal"
}

 


brianclifton4666
Re: Where did refund go?

Thanks for the response- definitely my mistake. I forgot to do the capture before doing the refund.

RE: the documentation
So you are confirming the Refund which is NOT the tagged version (the one which you pass all the card data) is deprecated? The latest documentation makes it look that way; the previous link I shared was a bookmark from last month.

This should be fine (in fact, makes things cleaner). I would just like to confirm

Thanks
Brian


pramodrao2872
Re: Where did refund go?

We do have the non-tagged version of the Refund. This is not deprecated. I was mentioning that the old link for documentation you had was deprecated. So, as you see in our latest link, for credit card transactions, we support both tagged version as well as full version of the REFUND transction. 

 

Thanks & Regards,

Payeezy Team


amitkumar7625
Re: Where did refund go?

I have two following doubts:
1.) I want to refund the amount after capture and authorized amount.
2.) Where to check the list of all the transaction of Sandbox.

Your advice is appreciated :)


rohitrajagopal3538
Re: Where did refund go?

Hello Amit,

1. For refund, please see our documentation here: https://developer.payeezy.com/payeezy-api/apis/post/transactions/%7Bid%7D-0

2. It is not possible to view the sandbox transactions in the payeezy gateway interface. However, you can query your transactions with the Search for Events API - https://developer.payeezy.com/payeezy-api/apis/get/events

Regards,

Payeezy team