cashfree / cashfree-whmcs

GNU General Public License v3.0
1 stars 3 forks source link

Bug on cancelling payment #7

Closed cystec closed 2 years ago

cystec commented 3 years ago

Click pay now button from WHMCS, then it redirects you to cashfree page.

Now cancel the payment & cashfree will successfully redirect you to whmcs invoice and output will show: Payment failed etc. & Invoice unpaid.

Now attempt to Pay again.

Cashfree will throw this error: ERROR: Order with same id is already present

I believe this will also happen when user's payment gets failed instead of cancel.

big89 commented 3 years ago

If Cashfree requires unique orderId in each payment request, then this error will occur as WHMCS passing same orderId every time we are initiating payment request for same invoice.

This can be get resolved by making orderId parameter unique in gateway file like concatenating timestamp or some random number.

ankitsuryawanshi commented 2 years ago

Has this issue been resolved or is it still there?

iuzairjan commented 2 years ago

Solve this issue, you ppl only ignore it. I don't know why the hell I'm paying gateway charges when you cannot fix your tools

prem-cashfree commented 2 years ago

@iuzairjan we are working on it and publish a new release with all this fixes.

prem-cashfree commented 2 years ago

@iuzairjan and @cystec we have released a new updated. Can you use updated one for latest change.