Skip to content

Commit 724ed4f

Browse files
author
Shreyansh Pandey
authored
Merge pull request #62 from paypay/feature/PP-67208
Fix validation typo on pending payment refund
2 parents 575a26c + 01d629b commit 724ed4f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

paypayopa/resources/pending.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ def cancel_payment(self, id, **kwargs):
4646

4747
def refund_payment(self, data={}, **kwargs):
4848
url = "{}".format(URL.REFUNDS)
49-
if "merchantPaymentId" not in data:
49+
if "merchantRefundId" not in data:
5050
raise ValueError("\x1b[31m MISSING REQUEST PARAMS "
51-
"\x1b[0m for merchantPaymentId")
51+
"\x1b[0m for merchantRefundId")
5252
if "requestedAt" not in data:
5353
data['requestedAt'] = datetime.datetime.now().second
5454
if "paymentId" not in data:
5555
raise ValueError("\x1b[31m MISSING REQUEST PARAMS "
56-
"\x1b[0m for userAuthorizationId")
56+
"\x1b[0m for paymentId")
5757
if "amount" not in data["amount"]:
5858
raise ValueError("\x1b[31m MISSING REQUEST PARAMS "
5959
"\x1b[0m for amount")

0 commit comments

Comments
 (0)