Module to integrate cielo smartpos
npm install cielo-smartpos-expo-modulebash
npm i cielo-smartpos-expo-module
`
Usage
`typescript
import {
doAsyncPayment,
doAsyncVoidPayment,
doAsyncPrintText,
doAsyncPrintBitmap,
getSerialNumber,
CieloSmartposExpoModule,
} from "cielo-smartpos-expo-module";
`
$3
`xml
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="true"
android:theme="@style/AppTheme"
android:supportsRtl="true"
android:enableOnBackInvokedCallback="false"
android:requestLegacyExternalStorage="true">
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:theme="@style/Theme.App.SplashScreen"
android:exported="true"
android:screenOrientation="portrait">
`
$3
`xml
cielo-smartpos-expo-module-example
contain
false
cielo-smartpos-expo-module
payment
payment-reversal
print
`
β οΈ Important rule about the host name: it must match the screen route (Expo Router)
The host defined in each intent filter must match the exact route of the screen that will receive the deep link callback.
Examples:
app/index.tsx β host must be "index"
app/payment.tsx β host must be "payment"
app/sell/finish.tsx β host must be "finish"
So, for example:
β If your callback should return to app/index.tsx:
`xml
`
β For a screen like app/payment.tsx:
`xml
`
This is mandatory, because SmartPOS always returns in the format:
`ruby
://
``