Communicate with Paxstore SDK, to receive data from POS treminals.
npm install capacitor-paxstore-sdk
npx cap syncinit(...)checkInit()startSale(...)startReversal(...)startRefund(...)startPrintTrans(...)startPrintTransTotal(...)findPrinters()setPrinter(...)printBill(...)- Interfaces
init(options: InitOptions) => anyInitialize 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() => anyCheck Initialization.
Returns: any
Since: 1.0.8
startSale(options: SaleOptions) => anyStart Sale API to start payment
| Param | Type |
|---|---|
options |
SaleOptions |
Returns: any
Since: 1.0.9
startReversal(options: ReversalOptions) => anyStart Reversal API to start reversal
| Param | Type | Description |
|---|---|---|
options |
ReversalOptions |
: {rrn: string}` |
Returns: any
Since: 1.0.20
startRefund(options: RefundOptions) => anyStart Refund API to start reversal
| Param | Type | Description |
|---|---|---|
options |
RefundOptions |
: {amount: string, rrn: string}` |
Returns: any
Since: 1.0.20
startPrintTrans(options: PrintTransOptions) => anyStart Print Transaction API to start Print Transaction
| Param | Type | Description |
|---|---|---|
options |
PrintTransOptions |
: {etVoucherNo: string}` |
Returns: any
Since: 1.0.20
startPrintTransTotal(options: PrintTransTotalOptions) => anyStart Print Transaction Total API to start Print Transaction Total
| Param | Type | Description |
|---|---|---|
options |
PrintTransTotalOptions |
: {etPrintType: string}` |
Returns: any
Since: 1.0.20
findPrinters() => anyFind printers API to List all connected printers
Returns: any
Since: 1.0.25
setPrinter(options: { address: string; }) => anySelect Printer API to select printer and init it
| Param | Type |
|---|---|
options |
{ address: string; } |
Returns: any
Since: 1.0.25
printBill(options: { value: string; }) => anyPrint 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 |