# JavaScript Libraries
source: https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/index.md

Mastercard Gateway provides the following JavaScript libraries to help with specific features of integration on your web site or app:

## Payment page {#payment-page}

* [checkout.js](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/checkout/index.md)
  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](https://developer.mastercard.com/mastercard-gateway/documentation/integrations-types/hosted-checkout/index.md).

* [session.js](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/session/index.md)
  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](https://developer.mastercard.com/mastercard-gateway/documentation/integrations-types/hosted-session/index.md).

## Specific payment methods {#specific-payment-methods}

* [click-to-pay.js](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/click-to-pay/index.md)
  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](https://developer.mastercard.com/mastercard-gateway/documentation/gateway-features/click-to-pay/c2p-flows-for-hsi/index.md).

* [gateway-paypal.js](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/paypal/index.md)
  This provides an SDK for PayPal payments. For more information, see [PayPal](https://developer.mastercard.com/mastercard-gateway/documentation/payment-methods/digital-wallets/paypal/index.md).

## Security {#security}

* [rupay.js](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/rupay/index.md)
  This provides an SDK for RuPay authentication flows for online payments when using the Hosted Session integration method. For more information, see [RuPay Payer](https://developer.mastercard.com/mastercard-gateway/documentation/security-and-fraud/authentication/rupay-payer-auth/imp-rupay-auth-rupay-js-api/index.md).

* [3DS.js](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/three-ds/index.md)
  This provides an SDK for implementing EMV 3-D Secure authentication flows for online payments when using the Hosted Session integration method. For more information, see [EMV 3-D Secure with EMV 3-D Secure JavaScript API](https://developer.mastercard.com/mastercard-gateway/documentation/security-and-fraud/authentication/3d-secure-auth/3ds-js-api/index.md).

### Quick links {#quick-links}

|  JS Library  |                                                                    Operation                                                                    |
|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| Checkout     | [Checkout SDK overview](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/checkout/index.md)         |
| Click to Pay | [Click to Pay SDK overview](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/click-to-pay/index.md) |
| PayPal       | [PayPal SDK overview](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/paypal/index.md)             |
| Risk         | [Risk SDK overview](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/risk/index.md)                 |
| Rupay        | [Rupay SDK overview](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/rupay/index.md)               |
| Session      | [Session SDK Overview](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/session/index.md)           |
| ThreeDS      | [ThreeDS SDK overview](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/three-ds/index.md)          |

