Skip to main content

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 payment
  • description: description of the payment
  • metadata: additional metadata to send with the payment request (optional)