# MD for: https://www.mercadopago.com.br/developers/es/docs/google-pay/web-integration.md \# Mercado Pago integration for websites This model lets you offer Google Pay on your website without decrypting tokens on your server. The Mercado Pago JavaScript SDK (JS SDK) checks wallet availability, displays the Google Pay button and generates a \_token\_ ready to create the payment. The button is displayed in the \_frontend\_ and the payment is created in your \_backend\_ with the Orders API. Follow the steps to integrate. > NOTE > > For now, the integration accepts Visa, Mastercard and American Express credit cards eligible for Google Pay, tokenized on Android devices and used in the Google Chrome browser. It supports only the \`CRYPTOGRAM\_3DS\` authentication method, which uses a cryptogram generated on the device: cards available only through \`PAN\_ONLY\` (saved in the Google Account without tokenization on the device) are not eligible. Availability depends on the card and the device, so keep other payment methods in your checkout. sequenceDiagram participant C as Buyer participant V as Site (frontend) participant B as Your backend participant MP as Mercado Pago participant G as Google Pay V->>MP: Check that the account is enabled V->>G: Check Google Pay availability G-->>V: Google Pay button available C->>V: Click the Google Pay button V->>G: Payment request (Google Pay screen) G-->>V: Protected payment data V->>MP: Tokenize the payment (SDK) MP-->>V: Mercado Pago token (callback) V->>B: Send the token B->>MP: Create the order (token + data) MP-->>B: Order response B-->>V: Payment result :::AccordionComponent{title="Include the JS SDK and initialize Google Pay" pill="1"} Before you start, gather your application's credentials and make sure your checkout uses HTTPS: Google Pay does not work over HTTP. To do this, install an SSL certificate on your site. See the \[Google Pay prerequisites\](https://developers.google.com/pay/api/web/guides/setup). - :toolTipComponent\[\_Public Key\_\]{content="Public key linked to an application, used in the frontend to initialize the SDK." link="/developers/en/docs/google-pay/credentials"}: used to initialize the JS SDK in the frontend. To test, use a \_Public Key\_ with the \`TEST-\` prefix. - :toolTipComponent\[\_Access Token\_\]{content="Private key linked to an application, used in the backend to authenticate operations. It must never be exposed in the frontend." link="/developers/en/docs/google-pay/credentials"} for testing: used in the backend to create the payment. In production, use the production one. Include the \[JS SDK\](https://www.mercadopago.com.br/developers/en/docs/sdks-library/landing) in your \_frontend\_. You can add the code in a \`