To be DSGVO (GDPR) compliant I need a button that says "zahlungspflichtig bestellen" in german and then, depending on the payment method the user selected, continue with opening the paypal payment dialogue or something else respectively. So I want to add an event listener to a custom button and call the function that a normal paypal button would run on click natively. Looking at the script, it all seems to happen behind the scenes (I reckon as some sort of security measure). All I see is paypal.Buttons({…}).render('#paypal-button-container'); How do other austrian/german apps handle that since it's required by law what the last button below the order summary should say.
... View more