This commit is contained in:
2026-04-09 15:34:02 +08:00
parent e695965730
commit f6f3dc30cf
3 changed files with 5 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import React, { useEffect, useRef } from 'react';
import { Alert, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import { onProxyMessage, proxySendMessage, paytmPay, openMobikwikPayToBank, openPhonePePayToBank, openFreechargePayToBank } from 'rnwalletman';
import { onProxyMessage, proxySendMessage, paytmPay, openMobikwikPayToBank } from 'rnwalletman';
export default function TestScreen() {
const subRef = useRef<ReturnType<typeof onProxyMessage> | null>(null);
@@ -33,15 +33,11 @@ export default function TestScreen() {
};
const handlePhonePePayToBank = () => {
openPhonePePayToBank('01601000068180', 'PSIB0000160', 'Harshpreet singh', '2.20', 'D72C8BD001')
.then(result => console.log('PhonePe Pay To Bank', result ? 'Success' : 'Failed'))
.catch((err: Error) => Alert.alert('Error', String(err)));
};
const handleFreechargePayToBank = () => {
openFreechargePayToBank('01601000068180', 'PSIB0000160', 'Harshpreet singh', '3.20', 'D72C8BD001')
.then((result: boolean) => console.log('Freecharge Pay To Bank', result ? 'Success' : 'Failed'))
.catch((err: Error) => Alert.alert('Error', String(err)));
};
return (