1.0.30 • Published 4 years ago

capacitor-paxstore-sdk v1.0.30

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

capacitor-paxstore-sdk

Communicate with Paxstore SDK, to receive data from POS treminals.

Install

npm install capacitor-paxstore-sdk
npx cap sync

API

init(...)

init(options: InitOptions) => any

Initialize sdk.

ParamTypeDescription
optionsInitOptions: {appKey: string, appSecret: string, packageName: 'com.pax.psp_3rd_app'}` Get from offsite.

Returns: any

Since: 1.0.0


checkInit()

checkInit() => any

Check Initialization.

Returns: any

Since: 1.0.8


startSale(...)

startSale(options: SaleOptions) => any

Start Sale API to start payment

ParamType
optionsSaleOptions

Returns: any

Since: 1.0.9


startReversal(...)

startReversal(options: ReversalOptions) => any

Start Reversal API to start reversal

ParamTypeDescription
optionsReversalOptions: {rrn: string}`

Returns: any

Since: 1.0.20


startRefund(...)

startRefund(options: RefundOptions) => any

Start Refund API to start reversal

ParamTypeDescription
optionsRefundOptions: {amount: string, rrn: string}`

Returns: any

Since: 1.0.20


startPrintTrans(...)

startPrintTrans(options: PrintTransOptions) => any

Start Print Transaction API to start Print Transaction

ParamTypeDescription
optionsPrintTransOptions: {etVoucherNo: string}`

Returns: any

Since: 1.0.20


startPrintTransTotal(...)

startPrintTransTotal(options: PrintTransTotalOptions) => any

Start Print Transaction Total API to start Print Transaction Total

ParamTypeDescription
optionsPrintTransTotalOptions: {etPrintType: string}`

Returns: any

Since: 1.0.20


findPrinters()

findPrinters() => any

Find printers API to List all connected printers

Returns: any

Since: 1.0.25


setPrinter(...)

setPrinter(options: { address: string; }) => any

Select Printer API to select printer and init it

ParamType
options{ address: string; }

Returns: any

Since: 1.0.25


printBill(...)

printBill(options: { value: string; }) => any

Print Bill API to Print bill

ParamTypeDescription
options{ value: string; }: {value: string}`

Returns: any

Since: 1.0.21


Interfaces

InitOptions

PropType
appKeystring
appSecretstring
packageNamestring

SaleOptions

PropType
amountstring

ReversalOptions

PropType
rrnstring

RefundOptions

PropType
amountstring
rrnstring

PrintTransOptions

PropType
etVoucherNostring

PrintTransTotalOptions

PropType
etPrintTypestring

Printer

PropType
addressstring
namestring
classstring
1.0.26

4 years ago

1.0.25

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.30

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago