Communicate with Paxstore SDK, to receive data from POS treminals.
npm install capacitor-paxstore-sdk
npx cap sync
init(...)
checkInit()
startSale(...)
startReversal(...)
startRefund(...)
startPrintTrans(...)
startPrintTransTotal(...)
findPrinters()
setPrinter(...)
printBill(...)
- Interfaces
init(options: InitOptions) => any
Initialize sdk.
Param | Type | Description |
---|---|---|
options |
InitOptions |
: {appKey: string, appSecret: string, packageName: 'com.pax.psp_3rd_app'}` Get from offsite. |
Returns: any
Since: 1.0.0
checkInit() => any
Check Initialization.
Returns: any
Since: 1.0.8
startSale(options: SaleOptions) => any
Start Sale API to start payment
Param | Type |
---|---|
options |
SaleOptions |
Returns: any
Since: 1.0.9
startReversal(options: ReversalOptions) => any
Start Reversal API to start reversal
Param | Type | Description |
---|---|---|
options |
ReversalOptions |
: {rrn: string}` |
Returns: any
Since: 1.0.20
startRefund(options: RefundOptions) => any
Start Refund API to start reversal
Param | Type | Description |
---|---|---|
options |
RefundOptions |
: {amount: string, rrn: string}` |
Returns: any
Since: 1.0.20
startPrintTrans(options: PrintTransOptions) => any
Start Print Transaction API to start Print Transaction
Param | Type | Description |
---|---|---|
options |
PrintTransOptions |
: {etVoucherNo: string}` |
Returns: any
Since: 1.0.20
startPrintTransTotal(options: PrintTransTotalOptions) => any
Start Print Transaction Total API to start Print Transaction Total
Param | Type | Description |
---|---|---|
options |
PrintTransTotalOptions |
: {etPrintType: string}` |
Returns: any
Since: 1.0.20
findPrinters() => any
Find printers API to List all connected printers
Returns: any
Since: 1.0.25
setPrinter(options: { address: string; }) => any
Select Printer API to select printer and init it
Param | Type |
---|---|
options |
{ address: string; } |
Returns: any
Since: 1.0.25
printBill(options: { value: string; }) => any
Print Bill API to Print bill
Param | Type | Description |
---|---|---|
options |
{ value: string; } |
: {value: string}` |
Returns: any
Since: 1.0.21
Prop | Type |
---|---|
appKey |
string |
appSecret |
string |
packageName |
string |
Prop | Type |
---|---|
amount |
string |
Prop | Type |
---|---|
rrn |
string |
Prop | Type |
---|---|
amount |
string |
rrn |
string |
Prop | Type |
---|---|
etVoucherNo |
string |
Prop | Type |
---|---|
etPrintType |
string |
Prop | Type |
---|---|
address |
string |
name |
string |
class |
string |