Skip to content

Commit

Permalink
Merge pull request #5 from seemycoding/parameter-change
Browse files Browse the repository at this point in the history
change me to mc (payeeMerchantCode)
  • Loading branch information
bhar4t authored Apr 7, 2024
2 parents eb64936 + fb46574 commit 0df0c3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function buildUrl(this: string, params: object) {
export default function upiqr ({
payeeVPA: pa,
payeeName: pn,
payeeMerchantCode: me,
payeeMerchantCode: mc,
transactionId: tid,
transactionRef: tr,
transactionNote: tn,
Expand All @@ -37,7 +37,7 @@ export default function upiqr ({
if (am) intent = buildUrl.call(intent, { am })
if (mam) intent = buildUrl.call(intent, { mam })
if (cu) intent = buildUrl.call(intent, { cu })
if (me) intent = buildUrl.call(intent, { me })
if (me) intent = buildUrl.call(intent, { mc })
if (tid) intent = buildUrl.call(intent, { tid })
if (tr) intent = buildUrl.call(intent, { tr }) // tr: transactionRef upto 35 digits
if (tn) intent = buildUrl.call(intent, { tn })
Expand All @@ -48,4 +48,4 @@ export default function upiqr ({
.then((base64Data: string) => resolve({ qr: base64Data, intent } as QRResult))
.catch(err => reject(new Error("Unable to generate UPI QR Code.\n" + err)))
})
}
}

0 comments on commit 0df0c3c

Please sign in to comment.