Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Users can connect to the payment link application by using this link : "https://pay.leatherback.co/redirect/$%7Bdata

Please note that the data object to be appended is in a base64 format. This can be achieved using the javascript  btoa(encodeURI(paymentObjPara))

A sample of the object parameter to be passed is shown below;

{
     redirectUrl: "http://localhost:3035?status=redirectedBack",
     key: "pk_test_a4hae811b76c17g364g6fhc3cce5ab0359g67f8",
     showPersonalInformation: false,
     customerEmail: "marcicocha@yahoo.com",
     customerName: "Marcia Cole",
     reference: "MC000000000029",
     shouldWindowClose: false,
     amount: amountObj.value.amount,
     currencyCode: amountObj.value.currencyCode,
   };

Please note, that there is a collection of user information on the payment application, if you don’t want this option, the showPersonalInformation flag should be false and the customerEmail and customerName should be part of the payload as shown above; Also note, that if the key shouldWindowClose is true, the page won't redirect, the page will only close. These are for cases where the link is being hosted in an iframe.


  • No labels