Expo
Fiuu React Native-Expo payment module for managed and bare Expo workflows.
Repository: Mobile-XDK-Fiuu_Expo
Package: fiuu-mobile-xdk-expo on npm (1.0.2+)
Use the repository README and FiuuExpoExampleProject as the integration reference. This repository does not publish a wiki.
Requirements
| Requirement | Version |
|---|---|
| npm plugin | fiuu-mobile-xdk-expo 1.0.2+ |
| Node.js | 18.20.5+ |
| Java | 21.0.7 |
| React Native | 0.76+ |
| Minimum Android SDK | 26+ |
| Android target | Android 11 |
| Xcode | 15+ |
| Minimum iOS | 16+ |
Installation
npm install fiuu-mobile-xdk-expo
Payment Details Object
var paymentDetails = {
'mp_dev_mode': false,
'mp_username': 'username',
'mp_password': 'password',
'mp_merchant_ID': 'merchantid',
'mp_app_name': 'appname',
'mp_verification_key': 'vkey123',
'mp_amount': '1.10',
'mp_order_ID': 'orderid123',
'mp_currency': 'MYR',
'mp_country': 'MY',
'mp_channel': 'multi',
'mp_bill_description': 'billdesc',
'mp_bill_name': 'billname',
'mp_bill_email': 'email@domain.com',
'mp_bill_mobile': '+1234567',
'mp_channel_editing': false,
'mp_editing_enabled': false,
'mp_express_mode': true,
'mp_allowed_channels': ['credit', 'credit3'],
'mp_language': 'EN',
'mp_display_closebutton': true,
'mp_enable_fullscreen': true,
'mp_classic_webcore': true,
};
See Payment Parameters for the complete parameter list.
Start Payment
import { startMolpay } from 'fiuu-mobile-xdk-expo';
startMolpay(paymentDetails, (result) => {
console.log('Fiuu Payment Result:', result);
Alert.alert('Payment Result', JSON.stringify(result));
});
Google Pay Integration
var paymentDetails = {
'mp_sandbox_mode': true,
'mp_merchant_ID': '',
'mp_verification_key': '',
'mp_order_ID': 'order1234567890',
'mp_currency': 'MYR',
'mp_country': 'MY',
'mp_amount': '1.23',
'mp_bill_description': 'Test Google Pay',
'mp_bill_name': 'Google Pay',
'mp_bill_email': 'testing@gmail.com',
'mp_bill_mobile': '123456789',
'mp_gpay_channel': ['SHOPEEPAY', 'TNG-EWALLET', 'CC'],
'mp_extended_vcode': false,
};
startMolpay(paymentDetails, (result) => {
console.log('Fiuu Payment Result:', result);
});
tip
For Google Pay production, request access at Google Pay production access. Set mp_sandbox_mode = false and use production credentials after approval.
Checksum Validation
chksum = MD5(mp_merchant_ID + results.msgType + results.txn_ID + results.amount + results.status_code + merchant_private_secret_key)
See Response Handling for details on mp_secured_verified.
Deeplink Setup
See Deeplink Setup for e-wallet redirection configuration.
Related Guides
- React Native — Bare React Native variant
- Payment Parameters
- Response Handling
- GitHub README