JavaScript Libraries
Mastercard Gateway provides the following JavaScript libraries to help with specific features of integration on your web site or app:
Payment page
checkout.js
This allows you to implement initial transactions where the payer uses a payment page hosted by Mastercard Gateway to provide their payment details directly to the gateway. For more information, see Hosted Checkout.
session.js
This provides support for your payment page to use the fields hosted by Mastercard Gateway that allow the payer to provide their payment details directly to the gateway. For more information, see Hosted Session.
Specific payment methods
click-to-pay.js
This allows you to add support for the Click to Pay payment method to your payment page when using the Hosted Session integration method. For more information, see Click to Pay Hosted Session Integration.
gateway-paypal.js
This provides an SDK for PayPal payments. For more information, see PayPal.
Security
rupay.js
This provides an SDK for RuPay authentication flows for online payments when using the Hosted Session integration method. For more information, see RuPay Payer.
3DS.js
This provides an SDK for implementing 3DS authentication flows for online payments when using the Hosted Session integration method. For more information, see 3DS with 3DS JavaScript API.