Creating a PayTo component
You can enable this by calling addPayTo()
:
window.addEventListener('load', function () {
payfurl.init('sandbox', '<public key>')
.addPayTo('iframeContainer', '<amount>', '<PayTo Provider Id (optional)>', 'options (optional)');
});
options
is an optional object that can contain the following properties:
maximumAmount
: maximum amount of the paymentdescription
: description of the paymentmetadata
: additional metadata to send with the payment request (optional)