1.1.7 • Published 5 months ago

qr-prompt-pay v1.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Quickstart

To generate thai QR promptpay

1. Install

npm install qr-prompt-pay

2. Import QRPromptpayModule to AppModule (ES6 module syntax)

import { Module } from "@nestjs/common";
import { QRPromptpayModule } from "qr-prompt-pay";

@Module({
  imports: [
    QRPromptpayModule.forRoot({
      applicationKey: "[Your Key]",
      applicationSecret: "[Your secret]",
      environment: "[Your environment('dev','uat','prd')]",
    }),
  ],
  controllers: [],
  providers: [],
})
export class AppModule {}

3. Generate (ES6 module syntax)

import { SCBService } from 'qr-prompt-pay';
.
.
.
constructor(private _SCBService: SCBService) {}
.
.
const auth = await _SCBService.auth();
const qrBase64 = await _SCBService.generate(
{
    qrType: 'PP',
    ppType: 'BILLERID',
    ppId: '987351499109978',
    amount: '100',
    ref1: '256879854826537',
    ref2: '256879854826547',
    ref3: 'EII',
    numberOfTimes: 1,
    expiryDate: '2023/12/15 15:15:000',
},
auth.data.accessToken
);
1.1.1

5 months ago

1.1.7

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.1.0

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago