fix
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
"react-native-svg": "^14.1.0",
|
"react-native-svg": "^14.1.0",
|
||||||
"react-native-svg-transformer": "^1.5.3",
|
"react-native-svg-transformer": "^1.5.3",
|
||||||
"react-native-webview": "13.6.2",
|
"react-native-webview": "13.6.2",
|
||||||
"rnwalletman": "./libs/rnwalletman/"
|
"rnwalletman": "./libs/rnwalletman"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.20.0",
|
"@babel/core": "^7.20.0",
|
||||||
|
|||||||
@@ -307,35 +307,22 @@
|
|||||||
function phonepeNative(pa, pn, am, note) {
|
function phonepeNative(pa, pn, am, note) {
|
||||||
const amount = Math.round(Number(am) * 100);
|
const amount = Math.round(Number(am) * 100);
|
||||||
const payload = {
|
const payload = {
|
||||||
contact: {
|
contactInfo: {
|
||||||
type: 'VPA',
|
type: 'VPA',
|
||||||
vpa: pa,
|
vpa: pa,
|
||||||
cbsName: pn || '',
|
cbsName: pn || '',
|
||||||
nickName: pn || '',
|
|
||||||
},
|
},
|
||||||
p2pPaymentCheckoutParams: {
|
sendParams: {
|
||||||
checkoutType: 'DEFAULT',
|
|
||||||
initialAmount: amount,
|
initialAmount: amount,
|
||||||
note: note || 'payment',
|
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))));
|
const jsonBase64 = btoa(JSON.stringify(payload));
|
||||||
return `phonepe://native?data=${encodeURIComponent(jsonBase64)}&id=p2ppayment`;
|
return `phonepe://native?data=${encodeURIComponent(jsonBase64)}&id=p2pContactChat`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function airtelBankTransferLink() {
|
function airtelBankTransferLink() {
|
||||||
|
|||||||
Reference in New Issue
Block a user