1.2.0 • Published 1 month ago

upiqr v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

npm package Build Status Downloads Issues Commitizen Friendly Semantic Release

Generate NPCI's UPI QR code (BASE64) along with UPI intent link, By using it any payment is possible from UPI enabled apps.

Supports

This package will work on client and server.

  import upiqr from "upiqr";

  upiqr({
    payeeVPA: "bhar4t@upi",
    payeeName: "Bharat Sahu"
  })
  .then((upi) => {
    console.log(upi.qr);      // data:image/png;base64,eR0lGODP...
    console.log(upi.intent);  // upi://pay?pa=bhar4t@upi&pn=Bharat..
  })
  .catch(err => {
    console.log(err);
  });

Fields detail:

FieldsDescriptionRequired
payeeVPAVPA address from UPI payment accountMandatory
payeeNameMerchant Name registered in UPI payment accountMandatory
payeeMerchantCodeMerchant Code from UPI payment accountOptional
transactionIdUnique transaction id for merchant's referenceOptional
transactionRefUnique transaction id for merchant's referenceOptional
transactionNoteNote will appear in payment app while transactionOptional
amountAmountOptional
minimumAmountMinimum amount that has to be transferredOptional
currencyCurrency of amount (default: INR)Optional
transactionRefUrlURL for the orderOptional

In table, fields requirement column is based on static QR, For dynamic QR you need to change more fields along with payeeVPA and payeeName.

For a complete list of supported fields, refer to the NPCI UPI Linking Specs

Internally using qrcode for QR Generation.

1.2.0

1 month ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.40

9 months ago

1.0.44

9 months ago

1.0.43

9 months ago

1.0.42

9 months ago

1.0.41

9 months ago

1.0.33

9 months ago

1.0.37

9 months ago

1.0.36

9 months ago

1.0.35

9 months ago

1.0.34

9 months ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.27

3 years ago

1.0.22

3 years ago

1.0.23

3 years ago

1.0.21

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago