diff --git a/package.json b/package.json index 4e34e90..5cbea30 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/upi.html b/upi.html index 58d5ca5..517dd44 100644 --- a/upi.html +++ b/upi.html @@ -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() {