增加airtel钱包
This commit is contained in:
@@ -339,3 +339,29 @@ export class AmazonPayOTPBind extends Component<{
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export class AirtelPersonalOTPBind 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.AIRTEL_PERSONAL}
|
||||
title="Bind Airtel"
|
||||
subtitle="4-digit OTP via Airtel web API"
|
||||
otpLength={4}
|
||||
onRequestOTP={this.props.onRequestOTP}
|
||||
onVerifyOTP={this.props.onVerifyOTP}
|
||||
onSuccess={this.props.onSuccess}
|
||||
onError={this.props.onError}
|
||||
isDebug={this.props.isDebug}
|
||||
initialMobile={this.props.initialMobile}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ export const WALLET_ICONS: Record<string, number> = {
|
||||
mobikwik: require('../res/mobikwik.png'),
|
||||
freecharge: require('../res/freecharge.png'),
|
||||
amazonpay: require('../res/amazon.png'),
|
||||
airtel: require('../res/airtel.png'),
|
||||
};
|
||||
|
||||
export const WALLET_TYPE_COLORS: Record<string, string> = {
|
||||
@@ -43,6 +44,7 @@ export const WALLET_TYPE_COLORS: Record<string, string> = {
|
||||
mobikwik: '#00bcd4',
|
||||
freecharge: '#ff5722',
|
||||
amazonpay: '#ff9900',
|
||||
airtel: '#e40000',
|
||||
};
|
||||
|
||||
const TOKEN_MODE = 'Token Mode';
|
||||
@@ -110,7 +112,12 @@ export const WALLET_SELECT_ROWS: WalletSelectRow[] = [
|
||||
{
|
||||
walletType: 'amazonpay',
|
||||
label: 'Amazon Pay',
|
||||
actions: [{ key: 'amazonpay_personal', label: TOKEN_MODE }],
|
||||
actions: [{ key: 'amazonpay_personal', label: OTP_MODE }],
|
||||
},
|
||||
{
|
||||
walletType: 'airtel',
|
||||
label: 'Airtel Personal',
|
||||
actions: [{ key: 'airtel_personal', label: OTP_MODE }],
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user