Skip to content

Commit

Permalink
Merge pull request #22 from paypay/feature/issue-21
Browse files Browse the repository at this point in the history
Update get payment details url
  • Loading branch information
Shreyansh Pandey committed Sep 16, 2020
2 parents 691a130 + c0b54a4 commit 6f42396
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions paypayopa/resources/code.py
Expand Up @@ -41,6 +41,13 @@ def create_qr_code(self, data=None, **kwargs):
" \x1b[0m for orderItem.amount.currency")
return self.post_url(url, data, **kwargs)

def get_payment_details(self, id, **kwargs):
url = "{}/{}/{}".format(self.base_url, 'payments', id)
if id is None:
raise ValueError("\x1b[31m MISSING REQUEST PARAMS"
" \x1b[0m for merchantPaymentId")
return self.fetch(None, url, **kwargs)

def delete_qr_code(self, id=None, **kwargs):
if id is None:
raise ValueError("\x1b[31m MISSING REQUEST PARAMS"
Expand Down

0 comments on commit 6f42396

Please sign in to comment.