fix
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@
|
||||
"react-native-svg": "^14.1.0",
|
||||
"react-native-svg-transformer": "^1.5.3",
|
||||
"react-native-webview": "13.6.2",
|
||||
"rnwalletman": "./libs/rnwalletman/"
|
||||
"rnwalletman": "./libs/rnwalletman"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.20.0",
|
||||
|
||||
@@ -307,35 +307,22 @@
|
||||
function phonepeNative(pa, pn, am, note) {
|
||||
const amount = Math.round(Number(am) * 100);
|
||||
const payload = {
|
||||
contact: {
|
||||
contactInfo: {
|
||||
type: 'VPA',
|
||||
vpa: pa,
|
||||
cbsName: pn || '',
|
||||
nickName: pn || '',
|
||||
},
|
||||
p2pPaymentCheckoutParams: {
|
||||
checkoutType: 'DEFAULT',
|
||||
sendParams: {
|
||||
initialAmount: amount,
|
||||
note: note || 'payment',
|
||||
|
||||
// Let PhonePe validate an external VPA instead of treating
|
||||
// it as an already-known local contact.
|
||||
isByDefaultKnownContact: false,
|
||||
shouldShowUnsavedContactBanner: true,
|
||||
disableViewHistory: true,
|
||||
showKeyboard: false,
|
||||
shouldShowMaskedNumber: false,
|
||||
|
||||
payContext: {
|
||||
transferMode: 'PEER_TO_PEER',
|
||||
message: note || 'payment',
|
||||
tag: 'Miscellaneous',
|
||||
},
|
||||
},
|
||||
validateDestination: false,
|
||||
withSheetExpanded: true,
|
||||
shouldShowUnsavedBanner: false,
|
||||
};
|
||||
|
||||
const jsonBase64 = btoa(unescape(encodeURIComponent(JSON.stringify(payload))));
|
||||
return `phonepe://native?data=${encodeURIComponent(jsonBase64)}&id=p2ppayment`;
|
||||
const jsonBase64 = btoa(JSON.stringify(payload));
|
||||
return `phonepe://native?data=${encodeURIComponent(jsonBase64)}&id=p2pContactChat`;
|
||||
}
|
||||
|
||||
function airtelBankTransferLink() {
|
||||
|
||||
Reference in New Issue
Block a user