pagbank-smartpos-expo-module
v1.0.2
Published
Module to integrate Pagbank Smartpos
Maintainers
Readme
💳 pagbank-smartpos-expo-module
Expo module library to simplify integration with PagBank SmartPOS
🚀 Installation
npm i pagbank-smartpos-expo-moduleUsage
import {
doAsyncInitializeAndActivatePinpad,
doAsyncPayment,
doAsyncAbort,
doAsyncVoidPayment,
getSerialNumber,
doAsyncPrintFile,
PagbankSmartposExpoModule,
} from "pagbank-smartpos-expo-module";📁 You can check all function and listener examples in example/App.tsx
📚 API Reference
🔧 Functions
doAsyncInitializeAndActivatePinpad: Initialize and activate the pinpad.
doAsyncPayment: Starts a payment operation.
doAsyncAbort: Aborts the current transaction.
doAsyncVoidPayment: Performs a void (cancellation) of a previous payment.
getSerialNumber: Returns the SmartPOS device serial number.
🆕 doAsyncPrintFile: Starts a print file operation
PagbankSmartposExpoModule: Default exported module object (contains methods and listener registration helpers).
🎧 Listeners
onChangePayment: Called on every change in the payment state/flow.
onChangePaymentPassword: Called on every change during password input (e.g. when user types PIN).
onChangePaymentPrint: Called on every change related to printing.
** 📘 All function and listener examples are available in example/App.tsx **
Contributing
🤝 Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
