Skip to main content

Creating a UPI component

You can enable this by calling addUpi():

window.addEventListener('load', function () {
payfurl.init('sandbox', '<public key>')
.addUpi('iframeContainer', '<amount>', '<UPI Provider Id (optional)>', 'options (optional)');
});

options is an optional object that can contain the following properties:

  • documentId: document number
  • name: full name of the customer
  • email: email address of the customer
  • subscriptionFrequencyUnit: a frequency unit for UPI payment method (can be ONDEMAND, DAILY, WEEKLY, MONTHLY, YEARLY)
  • subscriptionFrequency: a frequency for UPI payment method (a number)
  • subscriptionStartAt: a start date for a subscription (in format yyyyMMdd)
  • subscriptionEndAt: a end date for a subscription (in format yyyyMMdd)
  • metadata: additional metadata to send with the payment request (optional)