Skip to content

Commit

Permalink
Fix PayNowConfigFactory.build_merchant_account_info() default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
daffodilistic committed Nov 14, 2021
1 parent 33141b6 commit b2965c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyPayNowSg/PayNowConfigFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def build_payload(

@staticmethod
def build_merchant_account_info(
proxy_type=None,
proxy_type=2,
proxy_value=None,
editable_txn=True,
expiry_date=None
Expand All @@ -74,7 +74,7 @@ def build_merchant_account_info(
Args:
proxy_type (int, optional): Indicates how this QR code is linked.
Defaults to None. Possible values are:
Defaults to 2 (UEN). Possible values are:
0 - mobile number
1 - unknown (NRIC?)
2 - UEN
Expand All @@ -92,7 +92,7 @@ def build_merchant_account_info(
"""
account_info = [
(PayNowMerchantAccountInfo.GUID, PayNowConfigFactory.GUID_NAME),
(PayNowMerchantAccountInfo.PROXY_TYPE, 2),
(PayNowMerchantAccountInfo.PROXY_TYPE, proxy_type),
(PayNowMerchantAccountInfo.PROXY_VALUE, proxy_value),
(PayNowMerchantAccountInfo.EDITABLE_TXN, int(editable_txn)),
(PayNowMerchantAccountInfo.QR_CODE_EXPIRY, expiry_date)
Expand Down

0 comments on commit b2965c4

Please sign in to comment.