payloadFor
payloadFor(
input):string
Defined in: payload/dist/index.d.ts:34
Shorthand for the common “make me a PromptPay QR for this recipient with this amount” use case. Returns the wire payload string.
Parameters
Section titled “Parameters”amount?
Section titled “amount?”number
fromSatang?
Section titled “fromSatang?”boolean
recipient
Section titled “recipient”string
Returns
Section titled “Returns”string
Example
Section titled “Example”payloadFor({ recipient: '0812345678', amount: 100 }) // → '00020101021229370016A00000067701011101130066812345678530376454...'