Skip to main content

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

RequirementVersion
npm pluginfiuu-mobile-xdk-expo 1.0.2+
Node.js18.20.5+
Java21.0.7
React Native0.76+
Minimum Android SDK26+
Android targetAndroid 11
Xcode15+
Minimum iOS16+

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.

See Deeplink Setup for e-wallet redirection configuration.