Skip to content

Commit

Permalink
Merge pull request #41 from paypay/shreyanshp-patch-1
Browse files Browse the repository at this point in the history
Update payment.py
  • Loading branch information
Shreyansh Pandey authored Nov 18, 2020
2 parents 99e2918 + 3ab4c68 commit 149cb22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paypayopa/resources/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def refund_payment(self, data={}, **kwargs):
url = "{}/".format('/v2/refunds')
if "requestedAt" not in data:
data['requestedAt'] = datetime.datetime.now().second
if "merchantPaymentId" not in data:
if "merchantRefundId" not in data:
raise ValueError("\x1b[31m MISSING REQUEST PARAMS "
"\x1b[0m for merchantPaymentId")
"\x1b[0m for merchantRefundId")
if "paymentId" not in data:
raise ValueError("\x1b[31m MISSING REQUEST PARAMS "
"\x1b[0m for paymentId")
Expand Down

0 comments on commit 149cb22

Please sign in to comment.