Creating a Card component
You can enable this by calling addCard()
:
window.addEventListener('load', function () {
payfurl.init('sandbox', '<public key>')
.addCard('iframeContainer', '<Card Provider Id>', 'options');
});
options
is an object that can contain the following properties:
threeDSEmail
: email address to use for 3DS authenticationamount
: amount of the paymentcurrency
: currency of the paymentclickToPayEnabled
: enable Click To Pay feature (can betrue
orfalse
)clickToPayOptions
: Click to Pay options:dpaId
: DPA IddpaName
: DPA namecardBrands
: card brands which you want to support (can bevisa
,mastercard
,amex
,discover
,maestro
)dpaBillingPreference
: billing preference (can bePOSTAL_COUNTRY
,NONE
,FULL
)
createNetworkToken
: enable Create Network Token feature (can betrue
orfalse
as default)vault
: force store card details in the vault (can betrue
orfalse
as default)verifyCard
: enable card verification (can betrue
orfalse
as default), which will check the card, expiry date and CCV are valid with the provider. Not all providers support this.metadata
: additional metadata to send with the payment request (optional)