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 numbername
: full name of the customeremail
: email address of the customersubscriptionFrequencyUnit
: a frequency unit for UPI payment method (can beONDEMAND
,DAILY
,WEEKLY
,MONTHLY
,YEARLY
)subscriptionFrequency
: a frequency for UPI payment method (a number)subscriptionStartAt
: a start date for a subscription (in formatyyyyMMdd
)subscriptionEndAt
: a end date for a subscription (in formatyyyyMMdd
)metadata
: additional metadata to send with the payment request (optional)