fix
This commit is contained in:
64
App.tsx
64
App.tsx
@@ -248,12 +248,7 @@ export default class App extends Component<AppProps, AppState> {
|
|||||||
handleUploadPaytmPersonal = async (result: PaytmPersonalBindResult) => {
|
handleUploadPaytmPersonal = async (result: PaytmPersonalBindResult) => {
|
||||||
try {
|
try {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
const response = await Api.instance.register(WalletType.PAYTM_PERSONAL, {
|
const response = await Api.instance.register(WalletType.PAYTM_PERSONAL, result);
|
||||||
mobile: result.mobile,
|
|
||||||
token: result.token,
|
|
||||||
userId: result.userId,
|
|
||||||
profileDetail: result.profileDetail,
|
|
||||||
});
|
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setState({ showPaytmPersonalBind: false });
|
this.setState({ showPaytmPersonalBind: false });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -271,12 +266,7 @@ export default class App extends Component<AppProps, AppState> {
|
|||||||
handleUploadPaytmBusiness = async (result: PaytmBusinessBindResult) => {
|
handleUploadPaytmBusiness = async (result: PaytmBusinessBindResult) => {
|
||||||
try {
|
try {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
const response = await Api.instance.register(WalletType.PAYTM_BUSINESS, {
|
const response = await Api.instance.register(WalletType.PAYTM_BUSINESS, result);
|
||||||
contextData: result.contextData,
|
|
||||||
cookie: result.cookie,
|
|
||||||
xCsrfToken: result.xCsrfToken,
|
|
||||||
qrData: result.qrData
|
|
||||||
});
|
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setState({ showPaytmBusinessBind: false });
|
this.setState({ showPaytmBusinessBind: false });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -293,7 +283,7 @@ export default class App extends Component<AppProps, AppState> {
|
|||||||
/* 上传 Mobikwik Personal 到服务器 */
|
/* 上传 Mobikwik Personal 到服务器 */
|
||||||
handleUploadMobikwikPersonal = async (result: MobikwikPersonalBindResult) => {
|
handleUploadMobikwikPersonal = async (result: MobikwikPersonalBindResult) => {
|
||||||
try {
|
try {
|
||||||
console.log(result);
|
console.log(JSON.stringify(result));
|
||||||
// 已在 verifyOTP 中完成注册
|
// 已在 verifyOTP 中完成注册
|
||||||
this.setState({ showMobikwikPersonalBind: false });
|
this.setState({ showMobikwikPersonalBind: false });
|
||||||
Alert.alert('绑定成功', 'Mobikwik Personal 绑定成功');
|
Alert.alert('绑定成功', 'Mobikwik Personal 绑定成功');
|
||||||
@@ -311,7 +301,7 @@ export default class App extends Component<AppProps, AppState> {
|
|||||||
/* 上传 Freecharge Personal 到服务器 */
|
/* 上传 Freecharge Personal 到服务器 */
|
||||||
handleUploadFreechargePersonal = async (result: FreechargePersonalBindResult) => {
|
handleUploadFreechargePersonal = async (result: FreechargePersonalBindResult) => {
|
||||||
try {
|
try {
|
||||||
console.log(result);
|
console.log(JSON.stringify(result));
|
||||||
// 已经在 FreechargePersonalBind 中完成注册
|
// 已经在 FreechargePersonalBind 中完成注册
|
||||||
this.setState({ showFreechargePersonalBind: false });
|
this.setState({ showFreechargePersonalBind: false });
|
||||||
Alert.alert('绑定成功', 'Freecharge Personal 绑定成功');
|
Alert.alert('绑定成功', 'Freecharge Personal 绑定成功');
|
||||||
@@ -329,14 +319,8 @@ export default class App extends Component<AppProps, AppState> {
|
|||||||
/* 上传 PhonePe Personal 到服务器 */
|
/* 上传 PhonePe Personal 到服务器 */
|
||||||
handleUploadPhonePePersonal = async (result: PhonePePersonalBindResult) => {
|
handleUploadPhonePePersonal = async (result: PhonePePersonalBindResult) => {
|
||||||
try {
|
try {
|
||||||
console.log(result);
|
console.log(JSON.stringify(result));
|
||||||
const response = await Api.instance.register(WalletType.PHONEPE_PERSONAL, {
|
const response = await Api.instance.register(WalletType.PHONEPE_PERSONAL, result);
|
||||||
mobile: result.mobile,
|
|
||||||
token: result.token,
|
|
||||||
userId: result.userId,
|
|
||||||
extend: result.extend,
|
|
||||||
profileDetail: result.profileDetail,
|
|
||||||
});
|
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setState({ showPhonePePersonalBind: false });
|
this.setState({ showPhonePePersonalBind: false });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -353,18 +337,10 @@ export default class App extends Component<AppProps, AppState> {
|
|||||||
/* 上传 PhonePe Business 到服务器 */
|
/* 上传 PhonePe Business 到服务器 */
|
||||||
handleUploadPhonePeBusiness = async (result: PhonePeBusinessBindResult) => {
|
handleUploadPhonePeBusiness = async (result: PhonePeBusinessBindResult) => {
|
||||||
try {
|
try {
|
||||||
console.log(result);
|
console.log(JSON.stringify(result));
|
||||||
const response = await Api.instance.register(WalletType.PHONEPE_BUSINESS, {
|
const response = await Api.instance.register(WalletType.PHONEPE_BUSINESS, result);
|
||||||
cookie: result.cookie,
|
|
||||||
xCsrfToken: result.xCsrfToken,
|
|
||||||
qrData: result.qrData,
|
|
||||||
userAToken: result.userAToken,
|
|
||||||
userRToken: result.userRToken,
|
|
||||||
fingerprint: result.fingerprint,
|
|
||||||
userInfo: result.userInfo
|
|
||||||
});
|
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setState({ showPhonePeBusinessBind: false });
|
// this.setState({ showPhonePeBusinessBind: false });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
Alert.alert('Bind PhonePe Business Error', (error as Error).message || 'Unknown error');
|
Alert.alert('Bind PhonePe Business Error', (error as Error).message || 'Unknown error');
|
||||||
this.setState({ showPhonePeBusinessBind: false });
|
this.setState({ showPhonePeBusinessBind: false });
|
||||||
@@ -379,15 +355,8 @@ export default class App extends Component<AppProps, AppState> {
|
|||||||
/* 上传 GooglePay Business 到服务器 */
|
/* 上传 GooglePay Business 到服务器 */
|
||||||
handleUploadGooglePayBusiness = async (result: GooglePayBusinessBindResult) => {
|
handleUploadGooglePayBusiness = async (result: GooglePayBusinessBindResult) => {
|
||||||
try {
|
try {
|
||||||
console.log(result);
|
console.log(JSON.stringify(result));
|
||||||
const response = await Api.instance.register(WalletType.GOOGLEPAY_BUSINESS, {
|
const response = await Api.instance.register(WalletType.GOOGLEPAY_BUSINESS, result);
|
||||||
cookie: result.cookie,
|
|
||||||
url: result.url,
|
|
||||||
body: result.body,
|
|
||||||
channelUid: result.channelUid,
|
|
||||||
openUrl: result.openUrl,
|
|
||||||
merchantInfo: result.merchantInfo,
|
|
||||||
});
|
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setState({ showGooglePayBusinessBind: false });
|
this.setState({ showGooglePayBusinessBind: false });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -407,15 +376,14 @@ export default class App extends Component<AppProps, AppState> {
|
|||||||
console.log(result);
|
console.log(result);
|
||||||
const qrCode = await this.decodeQRFromUrl(result.qrUrl || '');
|
const qrCode = await this.decodeQRFromUrl(result.qrUrl || '');
|
||||||
console.log('qrCode:', qrCode);
|
console.log('qrCode:', qrCode);
|
||||||
|
|
||||||
const response = await Api.instance.register(WalletType.BHARATPE_BUSINESS, {
|
const response = await Api.instance.register(WalletType.BHARATPE_BUSINESS, {
|
||||||
cookie: result.cookie,
|
cookie: result.cookie,
|
||||||
accessToken: result.accessToken,
|
accessToken: result.accessToken,
|
||||||
merchantId: result.merchantId?.toString(),
|
merchantId: result.merchantId,
|
||||||
userName: result.userName?.toString(),
|
userName: result.userName,
|
||||||
email: result.email?.toString(),
|
email: result.email,
|
||||||
mobile: result.mobile?.toString(),
|
mobile: result.mobile,
|
||||||
qrCode: qrCode?.toString(),
|
qrCode: qrCode,
|
||||||
});
|
});
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.setState({ showBharatPeBusinessBind: false });
|
this.setState({ showBharatPeBusinessBind: false });
|
||||||
|
|||||||
2
android/.idea/vcs.xml
generated
2
android/.idea/vcs.xml
generated
@@ -3,5 +3,7 @@
|
|||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/../libs/rnwalletman" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/../servers/walletman" vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
Submodule libs/rnwalletman updated: db42db3e95...e13070803b
Submodule servers/walletman updated: 4163dfbace...f5b0b09bc9
Reference in New Issue
Block a user