Use this function if you are using Hosted Session to collect the card details from the payer.
Once the payer has entered the card number, use the information provided in the onCardTypeChange callback in field result.scheme and pass it to this function to determine if you can offer the payer to enroll the card in Click to Pay.
If the function returns true you must display the Click to Pay logo and terms and conditions.
ClickToPay.isEnrollmentAvailableForScheme(scheme, callback)
ClickToPay.isEnrollmentAvailableForScheme('MASTERCARD', function (canEnroll) { console.log('Card can be enrolled', canEnroll) });
None