From f5b701ca5ac13c65fb392844a8e7ed446cc54445 Mon Sep 17 00:00:00 2001 From: TQCasey <494294315@qq.com> Date: Mon, 11 May 2026 18:39:12 +0800 Subject: [PATCH] fix bugs --- screens/TestScreen.tsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/screens/TestScreen.tsx b/screens/TestScreen.tsx index eaf19db..26edf44 100644 --- a/screens/TestScreen.tsx +++ b/screens/TestScreen.tsx @@ -1,6 +1,13 @@ 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, + openPaytmPayToBank, + openMobikwikPayToBank, + openPhonePePayToBank, + openFreechargePayToBank, +} from 'rnwalletman'; export default function TestScreen() { const subRef = useRef | null>(null); @@ -20,9 +27,9 @@ export default function TestScreen() { proxySendMessage({ type: 'echo', messageId: `echo_${Date.now()}`, data: { text: `hello_${Date.now()}` } }); }; - const handlePaytmPay = () => { - paytmPay('Harshpreet singh', '01601000068180', 'PSIB0000160', '2', '66666') - .then(result => console.log(result)) + const handlePaytmPayToBank = () => { + openPaytmPayToBank('Harshpreet singh', '01601000068180', 'PSIB0000160', '2', '66666') + .then(result => console.log('Paytm Pay To Bank', result ? 'Success' : 'Failed')) .catch(error => Alert.alert('Transfer Failed', String(error))); }; @@ -48,7 +55,7 @@ export default function TestScreen() { Test Tools - + Paytm Pay To Bank Test