In my form, I implemented Paywall PayPal Plus, which is described here: https://www.paypalobjects.com/webstatic/de_DE/downloads/PayPal-PLUS-IntegrationGuide.pdf .
Everything is working fine so far, but after choosing payment, I want to show users a summary of orders on the next page and you need a payment method chosen by the user, which is stored in encrypted form in the paypalplus_session_v2 cookie.
I can also call getPaymentMethod (), which will return the same encrypted string as this:
paymentMethod "pp-82c59049fcdc48ec960990a83b100cb7"
So, how to get a clear text payment method?
Here are some JS codes for a better explanation:
var ppp = PAYPAL.apps.PPP({
"approvalUrl": appUrl,
"placeholder": "ppplus",
"mode": "sandbox",
"country": "DE",
"language": "de_DE",
"showPuiOnSandbox": "true",
buttonLocation: "outside",
enableContinue: "continueButton",
"showLoadingIndicator": true,
onContinue: function () {
window.location = "nextpage.php";
},
});
console.log(ppp.getPaymentMethod());
... paymentMethod "pp-82c59049fcdc48ec960990a83b100cb7"