This commit is contained in:
2026-09-06 21:11:12 +08:00
parent c29ea1b38b
commit 895029f6e9
6 changed files with 13 additions and 104 deletions
+4 -3
View File
@@ -23,6 +23,7 @@ import {
PhonePeBusinessBind,
WalletType,
PaytmBusinessBindResult,
PaytmBusinessTokenBindResult,
PaytmPersonalBind,
FreechargePersonalBindResult,
GooglePayBusinessBindResult,
@@ -40,6 +41,7 @@ import {
AmazonPayPersonalBind,
BindErrorCode,
ProxyBackgroundService,
PaytmBusinessTokenBind,
} from 'rnwalletman';
import {
@@ -49,7 +51,6 @@ import {
PhonePePersonalOTPBind,
BharatPeBusinessOTPBind,
PaytmBusinessOTPBind,
PaytmBusinessTokenBind,
PhonePeBusinessOTPBind,
} from '../components/WalletBindComponents';
import { WalletSelectModal, WALLET_ICONS, WALLET_TYPE_COLORS } from '../components/WalletSelectModal';
@@ -697,10 +698,10 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
<PaytmBusinessTokenBind
isDebug
processString="Connecting to Paytm Business..."
onSuccess={(result) => {
onSuccess={(result: PaytmBusinessTokenBindResult) => {
this.handleBindSuccess('showPaytmBusinessBind', WalletType.PAYTM_BUSINESS, 'Paytm Business bound successfully')(result);
}}
onError={(code, message) => {
onError={(code: string, message: string) => {
Alert.alert('Bind Failed', message || code);
close('showPaytmBusinessBind')();
}}