增加 amazon pay

This commit is contained in:
2026-05-27 12:30:52 +08:00
parent 38b89d240d
commit d7e16ee9c4
3 changed files with 64 additions and 0 deletions

View File

@@ -272,3 +272,28 @@ export class PhonePePersonalOTPBind extends Component<{
);
}
}
export class AmazonPayOTPBind extends Component<{
onRequestOTP: (walletType: WalletType, params: any) => Promise<any>;
onVerifyOTP: (walletType: WalletType, params: any) => Promise<any>;
onSuccess: (result: any) => void;
onError: (error: string) => void;
isDebug: boolean;
initialMobile?: string;
}> {
render() {
return (
<OTPBindUI
walletType={WalletType.AMAZONPAY_PERSONAL}
title="Amazon Pay 绑定"
otpLength={6}
onRequestOTP={this.props.onRequestOTP}
onVerifyOTP={this.props.onVerifyOTP}
onSuccess={this.props.onSuccess}
onError={this.props.onError}
isDebug={this.props.isDebug}
initialMobile={this.props.initialMobile}
/>
);
}
}