Overview

Google Pay™ allows customers to make payments in your app or website using any credit or debit card saved to their Google Account. In secuconnect, Google Pay is processed like a credit card payment, with a dedicated Payment Container type (googlepay).

Payment type:

Wallet (card-based)

Integration paths:

Hosted (Smart Checkout); custom checkout via API (Web, Android)

Card networks:

Visa, Mastercard

Authentication methods:

CRYPTOGRAM_3DS and PAN_ONLY

3-D Secure:

Required for PAN_ONLY; performed by Google Pay™ for CRYPTOGRAM_3DS

Authorize / Capture:

As for credit cards; auto_capture supported

Refunds / partial refunds:

Yes; same as credit card

Recurring payments:

Yes; same as credit card

Currencies / countries:

EUR / Euro area

Activation:

Google Pay™ is activated when the contract is concluded. Request it in the service agreement or contact Sales.

Choose Your Integration Path


Hosted (Smart Checkout)

Custom checkout (Web)

Android app

Google Pay button

Shown on the secupay payment page

Implemented in your shop

Implemented in your app (see Google documentation)

API calls

Create the Smart Transaction, then redirect

Authorize and capture as described below

Same as Web

3-D Secure

Handled on the hosted page

Required for PAN_ONLY

Required for PAN_ONLY

Hosted Page (Smart Checkout)

With Smart Checkout, the Google Pay button is displayed on the secupay hosted payment page.

What you need to do:

  • Create the Smart Transaction and redirect the customer to the hosted page. For details, see the Smart Checkout documentation for your use case: Integrate Smart Checkout for Webshops, Integrate Smart Checkout for Marketplaces, Integrate Smart Checkout for Platforms.
  • Call the secuconnect API from your server back-end.
  • Do not embed the hosted page in an iframe.
  • If you promote Google Pay™ in your shop (for example on product pages or in the footer), follow the Google Pay™ brand guidelines: include the trademark symbol ™ at the first or most prominent mention, and use the official logo and button assets without modification. Do not use the symbol where Google Pay is shown as a payment option, for example in a list of payment methods. See "Publish Your Integration", sections "Branding" and "Accepted Use".

Custom Checkout

As a prerequisite, you should understand:

Process Details

The payment process itself works similarly to other payment methods. When the customer clicks the Google Pay button, the payment instrument is chosen, and the necessary security checks are performed. The Google Pay API returns a security token that must be handed over to authorize the payment against the secuconnect API. The secuconnect API methods to authorize and capture the payment are the same as for credit card payment, but there is a special Payment Container type for Google Pay.

To set up for live transactions, you need two merchant IDs. One is received from Google (merchantId), the other from secupay (gatewayMerchantId). You can obtain the Google merchant ID and request production access for specific domains as described in Publish your integration.

ID

Source

Used as

merchantId

Google Pay & Wallet Console

merchantId in PaymentDataRequest

gatewayMerchantId

secupay (contract ID GCR_…)

gatewayMerchantId in tokenizationSpecification

Google Pay™ Button Integration

The Google Pay™ button integration is described in the Google Pay web developer documentation.

The following JavaScript excerpt shows the values that secuconnect requires:

Excerpt from JavaScript button integration
/**
* You must use API version 2.0
*/
const baseRequest = {
apiVersion: 2,
apiVersionMinor: 0
};
 
/**
* The supported card networks depend on your contract. You will receive the exact settings from secupay.
*/
const allowedCardNetworks = ["MASTERCARD", "VISA"];
 
/**
* Both authentication methods are supported. You can offer one or both. If you offer "PAN_ONLY", you must
* implement the 3-D Secure process described in "Authorize the Payment". If you offer only "CRYPTOGRAM_3DS",
* Google Pay™ is not available on many devices.
 */
const allowedCardAuthMethods = ["PAN_ONLY", "CRYPTOGRAM_3DS"];
 
/**
* You must use type 'PAYMENT_GATEWAY' and gateway 'secupay'. The gatewayMerchantId must be the GCR_… contract ID
* for the domain, and the same ID you use to create the Smart Transaction later.
 */
const tokenizationSpecification = {
type: 'PAYMENT_GATEWAY',
parameters: {
'gateway': 'secupay',
'gatewayMerchantId': 'GCR_674YDN6G8R2LP0VMC7P9TE877MUUGZ'
}
};
 
/**
* You must use type 'CARD'.
*/
const baseCardPaymentMethod = {
type: 'CARD',
parameters: {
allowedAuthMethods: allowedCardAuthMethods,
allowedCardNetworks: allowedCardNetworks
}
};
 
/**
* You must use the merchant ID received from Google here.
 */
function getGooglePaymentDataRequest() {
// ...
  merchantId: 'ABCDEFGHIJ123456',
    merchantName: 'Musterhändler GmbH',
// ...
}
 
// ...

Android Apps

For Android apps, the API integration is the same as for Web: authorization and capture are described in "Authorize the Payment" and "Capture the Payment". For the button and the Android SDK, follow the Google Pay Android developer documentation, the integration checklist and the brand guidelines (links under "Publish Your Integration").

Obtaining Button Parameters Dynamically

For a single merchant integration, you can hard-code the parameters for the Google Pay™ button. We will inform you in advance if something changes.

For more flexible platform integrations, you can retrieve the card networks and the merchant name dynamically from the iframe options endpoint. Call GET General/Contracts/GCR_…/IframeOptions, where GCR_… is the merchant's contract ID for the domain:

Request
GET /api/v2/General/Contracts/GCR_674YDN6G8R2LP0VMC7P9TE877MUUGZ/IframeOptions HTTP/1.1
Host: connect-testing.secuconnect.com
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Accept: application/json

The response contains the card networks and the merchant name for the contract:

Response (Excerpt)
HTTP/1.1 200 OK
Host: connect-testing.secuconnect.com
Content-Type: application/json
 
{
"payment_config": {
"Googlepay": {
"allowed_card_networks": [
"MASTERCARD",
"VISA"
],
"merchant_name": "Musterhändler GmbH"
}
}
}

Details of payment_config/Googlepay explained:

Parameter

Type

Meaning

allowed_card_networks

array

All card networks available with this contract.

Passed on unchanged to allowedCardNetworks for the Google Pay™ button.

You may pass fewer options than permitted if you do not wish to offer all networks. However, you must not offer more networks than were returned.

merchant_name 

string 

The merchant name associated with the contract.

Optionally passed on as merchantName for the Google Pay™ button. You may also pass another spelling of the name from your application or use the default that is configured in the Google Pay™ configuration.

Authorize the Payment

The payment data is passed from Google Pay™ to secuconnect in three steps:

  1. Google Pay™ returns a PaymentData object when you call loadPaymentData(). The field paymentMethodData.tokenizationData.token contains the payment token as a string.
  2. Decode this string as JSON.
  3. Pass the resulting object unchanged as container/private in the call POST Smart/Transactions/STX_…/prepare/creditcard, together with the other parameters listed below.

The following example shows the PaymentData object that Google Pay™ returns when you call loadPaymentData(). See the PaymentData reference for the complete structure.

Payment Data from Google Pay
{
"apiVersion": 2,
"apiVersionMinor": 0,
"paymentMethodData": {
"description": "Test Card: Visa •••• 1111",
"info": {
"assuranceDetails": {
"accountVerified": true,
"cardHolderAuthenticated": false
},
"cardDetails": "1111",
"cardFundingSource": "CREDIT",
"cardNetwork": "VISA"
},
"tokenizationData": {
    "token": "{\"signature\":\"MEYCIQD49P2rTI3O3aJRJOOn8cBv1oLrvo5xVuZoZN/iU4ujtAIhALbSTrEagiKU35FExFPMGsvY6IkM/VrR8X/sdaojqJTo\",\"intermediateSigningKey\":{\"signedKey\":\"{\\\"keyValue\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZS8xRABC8bOHMb/g1u4XOaJBEvNPj/j7sJxr3IbpmfsaC+LVFaCbgufBK0kGm0t/kjKXjhISN9+1FU6+gKdowg\\\\u003d\\\\u003d\\\",\\\"keyExpiration\\\":\\\"1795237907109\\\"}\",\"signatures\":[\"MEUCIQCS1lFeP85t+KIUBpkL2VgKPSZ3+JMV00tQRLDdiGgg3gIgJoBDqY2jxek1dKO/RMgZjUdDVeszCM1R7AdPZ0aRxTo\\u003d\"]},\"protocolVersion\":\"ECv2\",\"signedMessage\":\"{\\\"encryptedMessage\\\":\\\"EGfLTf9XXeK9gDqYid5wiUr/hhjVcvdxaO+Bi9PSfKTLbUN/pP+RWNpchH6Jhm8r305D0lr9mYFlDDY61b39+RI85akfUaA8V4csGou8hzl8Gb5JfnK0jZgbCgydcPwjX/MIyJPm/zzMugCJ3yNzniGbw0pmXHIHhYgjDGdcPwjAxvjzm6mDLuVqhIgfIaxhF1k3vnL9xLq6hCX6riyVBGLZPWY+rvUrL1sdalMq53Sh/C63pvPNS7FIAVlGLj6hp7ggQ4BUeKA4k6HETkdZD847GUYyL2QtDgmCwDATz/VW35P3lPUP0VxYJzo7yG+LhjVihMRV9v4kGZTUGQnYPLJ2+Fo/o9W6aID4LdQu6yQkhDys1wj2a/zfV0jxfTPjagdeDZLWAyknDXa8GrUG2GlfymYmsbTjJCtf0LnX+68PbE2fFDRnBFyEKj3j+u+hZx6fNudo7gvadLyNAJxZN+N+qXabatQBPkxqn21Ru+a8h9pv5EuGJ33JEZ6afkcKaU7DE+3yI5jEI6basujUo69lq6uWGuVS/muXhnNUxKlnyTKfpS8chrcLf8dmSxxLcZvE4mntlWlI9FcktWo\\\\u003d\\\",\\\"ephemeralPublicKey\\\":\\\"BDe7Cw3LF8Jl8VJ8snSrIeQLd4VbyxCEy137sz7KLysKnipI60ZiCJBJsyYxe8XmH0AoVULAnme4FiehcGomD7A\\\\u003d\\\",\\\"tag\\\":\\\"wpkJ2RtqKzshSbaXAjtWI7EJXci2QptS00W2vMBPSSA\\\\u003d\\\"}\"}",
"type": "PAYMENT_GATEWAY"
},
"type": "CARD"
}
}

Decode the string value of paymentData.paymentMethodData.tokenizationData.token as JSON. In this example, the result is the following object:

Deserialized Token
{
"signature": "MEYCIQD49P2rTI3O3aJRJOOn8cBv1oLrvo5xVuZoZN/iU4ujtAIhALbSTrEagiKU35FExFPMGsvY6IkM/VrR8X/sdaojqJTo",
"intermediateSigningKey": {
"signedKey": "{\"keyValue\":\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZS8xRABC8bOHMb/g1u4XOaJBEvNPj/j7sJxr3IbpmfsaC+LVFaCbgufBK0kGm0t/kjKXjhISN9+1FU6+gKdowg\\u003d\\u003d\",\"keyExpiration\":\"1795237907109\"}",
"signatures": [
"MEUCIQCS1lFeP85t+KIUBpkL2VgKPSZ3+JMV00tQRLDdiGgg3gIgJoBDqY2jxek1dKO/RMgZjUdDVeszCM1R7AdPZ0aRxTo="
]
},
"protocolVersion": "ECv2",
"signedMessage": "{\"encryptedMessage\":\"EGfLTf9XXeK9gDqYid5wiUr/hhjVcvdxaO+Bi9PSfKTLbUN/pP+RWNpchH6Jhm8r305D0lr9mYFlDDY61b39+RI85akfUaA8V4csGou8hzl8Gb5JfnK0jZgbCgydcPwjX/MIyJPm/zzMugCJ3yNzniGbw0pmXHIHhYgjDGdcPwjAxvjzm6mDLuVqhIgfIaxhF1k3vnL9xLq6hCX6riyVBGLZPWY+rvUrL1sdalMq53Sh/C63pvPNS7FIAVlGLj6hp7ggQ4BUeKA4k6HETkdZD847GUYyL2QtDgmCwDATz/VW35P3lPUP0VxYJzo7yG+LhjVihMRV9v4kGZTUGQnYPLJ2+Fo/o9W6aID4LdQu6yQkhDys1wj2a/zfV0jxfTPjagdeDZLWAyknDXa8GrUG2GlfymYmsbTjJCtf0LnX+68PbE2fFDRnBFyEKj3j+u+hZx6fNudo7gvadLyNAJxZN+N+qXabatQBPkxqn21Ru+a8h9pv5EuGJ33JEZ6afkcKaU7DE+3yI5jEI6basujUo69lq6uWGuVS/muXhnNUxKlnyTKfpS8chrcLf8dmSxxLcZvE4mntlWlI9FcktWo\\u003d\",\"ephemeralPublicKey\":\"BDe7Cw3LF8Jl8VJ8snSrIeQLd4VbyxCEy137sz7KLysKnipI60ZiCJBJsyYxe8XmH0AoVULAnme4FiehcGomD7A\\u003d\",\"tag\":\"wpkJ2RtqKzshSbaXAjtWI7EJXci2QptS00W2vMBPSSA\\u003d\"}"
}

Pass the decoded object unchanged as the value of container/private, and add the other parameters. The following call to POST Smart/Transactions/STX_xxx/prepare/creditcard authorizes the Smart Transaction:

Request
POST /api/v2/Smart/Transactions/STX_33PXAW2YN2NJTPM5KPGMK7QF5PBVA2/prepare/creditcard HTTP/1.1
Host: connect-testing.secuconnect.com
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Content-Type: application/json
Accept: application/json
 
{
"customer": {
"contact": {
"forename": "Mike",
"surname": "Mustermann",
"name": "Mike Mustermann",
"address": {
"street": "Musterstr.",
"street_number": "42",
"additional_address_data": "Whg. 103",
"postal_code": "09999",
"city": "Musterstadt",
"country": "DE"
},
"email": "mike@example.net",
"mobile": "+491775555555",
"phone": "+495555555555"
}
    },
"merchant": {
"id": "MRC_FDFCR9PP93SOINGJ7F63WKBHMFVW2O"
},
"container": {
"type": "googlepay",
"private": {
"signature": "MEYCIQD49P2rTI3O3aJRJOOn8cBv1oLrvo5xVuZoZN/iU4ujtAIhALbSTrEagiKU35FExFPMGsvY6IkM/VrR8X/sdaojqJTo",
"intermediateSigningKey": {
"signedKey": "{\"keyValue\":\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZS8xRABC8bOHMb/g1u4XOaJBEvNPj/j7sJxr3IbpmfsaC+LVFaCbgufBK0kGm0t/kjKXjhISN9+1FU6+gKdowg\\u003d\\u003d\",\"keyExpiration\":\"1795237907109\"}",
"signatures": [
"MEUCIQCS1lFeP85t+KIUBpkL2VgKPSZ3+JMV00tQRLDdiGgg3gIgJoBDqY2jxek1dKO/RMgZjUdDVeszCM1R7AdPZ0aRxTo="
]
},
"protocolVersion": "ECv2",
"signedMessage": "{\"encryptedMessage\":\"EGfLTf9XXeK9gDqYid5wiUr/hhjVcvdxaO+Bi9PSfKTLbUN/pP+RWNpchH6Jhm8r305D0lr9mYFlDDY61b39+RI85akfUaA8V4csGou8hzl8Gb5JfnK0jZgbCgydcPwjX/MIyJPm/zzMugCJ3yNzniGbw0pmXHIHhYgjDGdcPwjAxvjzm6mDLuVqhIgfIaxhF1k3vnL9xLq6hCX6riyVBGLZPWY+rvUrL1sdalMq53Sh/C63pvPNS7FIAVlGLj6hp7ggQ4BUeKA4k6HETkdZD847GUYyL2QtDgmCwDATz/VW35P3lPUP0VxYJzo7yG+LhjVihMRV9v4kGZTUGQnYPLJ2+Fo/o9W6aID4LdQu6yQkhDys1wj2a/zfV0jxfTPjagdeDZLWAyknDXa8GrUG2GlfymYmsbTjJCtf0LnX+68PbE2fFDRnBFyEKj3j+u+hZx6fNudo7gvadLyNAJxZN+N+qXabatQBPkxqn21Ru+a8h9pv5EuGJ33JEZ6afkcKaU7DE+3yI5jEI6basujUo69lq6uWGuVS/muXhnNUxKlnyTKfpS8chrcLf8dmSxxLcZvE4mntlWlI9FcktWo\\u003d\",\"ephemeralPublicKey\":\"BDe7Cw3LF8Jl8VJ8snSrIeQLd4VbyxCEy137sz7KLysKnipI60ZiCJBJsyYxe8XmH0AoVULAnme4FiehcGomD7A\\u003d\",\"tag\":\"wpkJ2RtqKzshSbaXAjtWI7EJXci2QptS00W2vMBPSSA\\u003d\"}"
}
},
"callback_urls": {
"success_url": "https://shop.example.com/payment/success?nonce=ciix8j3qbqffg8dcdc7b",
"failure_url": "https://shop.example.com/payment/failure?nonce=ciix8j3qbqffg8dcdc7b"
}
}

These are the parameters:

Parameter

Type

Meaning

container

object

Payment container data

container/type

string

Always "googlepay" for this payment method

container/private

object

JSON-decoded Google Pay token (see above)

customer

object

Customer. Only needed if not set before.

customer/id

string

Customer ID (PCU_xxx)

merchant

object

Merchant. Only needed if not identified by the contract.

merchant/id

string

Merchant ID (MRC_xxx)

callback_urls

object

Return URLs for 3-D Secure check; only needed for PAN_ONLY

callback_urls/success_url

string

Return URL for successful authentication

callback_urls/failure_url

string

Return URL for failed or aborted authentication

The field container/private takes the decoded JSON object from paymentData.paymentMethodData.tokenizationData.token.

The two callback URLs return the customer to your checkout after a successful or failed 3-D Secure check. The API response shows whether a 3-D Secure check is required.

If you have any questions about these details, contact our help desk.

If no 3-D Secure check is required, the Smart Transaction is authorized immediately:

Response (3-D Secure Not Required)
HTTP/1.1 200 OK
Content-Type: application/json
...
 
{
"object": "smart.transactions",
"id": "STX_33PXAW2YN2NJTPM5KPGMK7QF5PBVA2",
// ...
"customer": {
"object": "payment.customers",
"id": "PCU_WZ3HENRNE2NSQMSQHRD58CPH7GHCA2",
"contact": {
"forename": "Mike",
"surname": "Mustermann",
"name": "Mike Mustermann",
"address": {
"street": "Musterstr.",
"street_number": "42",
"additional_address_data": "Whg. 103",
"postal_code": "09999",
"city": "Musterstadt",
"country": "DE"
},
"email": "mike@example.net",
"mobile": "+491775555555",
"phone": "+495555555555"
}
},
"container": {
"object": "payment.containers",
"id": "PCT_SF9XGHPVC2NSQX03V86EREAMMET7AZ"
},
// ...
"transactions": [
{
"object": "payment.transactions",
"id": "PCI_FDBREW9ZS7P6FTN4ZY2ATC6NK0QWO7"
}
],
"created": "2020-10-29T14:13:41+01:00",
"updated": "2020-10-29T14:13:50+01:00",
"status": "approved",
// ...
"payment_method": "creditcard",
"trans_id": "30093721",
// ...
}

Status approved means that no 3-D Secure check is needed: the payment is authorized and you can capture it. If the status is failed or the call returns an HTTP error, you must repeat the payment process. You must also repeat the payment process when you update the Smart Transaction. Its status is then set back to created.

If the option auto_capture is true, the Smart Transaction is captured immediately. Status ok, received or collection means you can deliver. Status pending means you have to wait for one of these statuses. Status failed means the payment failed, and you must repeat the payment process.

The following variant with 3-D Secure does not occur when only "CRYPTOGRAM_3DS" is used.

If a 3-D Secure check is needed, the status stays unchanged (created; with loyalty, processing is also possible), and a redirect URL (iframe_url) is added to the Smart Transaction:

Response (3-D Secure Required)
HTTP/1.1 200 OK
Content-Type: application/json
...
 
{
"object": "smart.transactions",
"id": "STX_33PXAW2YN2NJTPM5KPGMK7QF5PBVA2",
// ...
"customer": {
"object": "payment.customers",
"id": "PCU_WZ3HENRNE2NSQMSQHRD58CPH7GHCA2",
        "contact": {
"forename": "Mike",
"surname": "Mustermann",
"name": "Mike Mustermann",
"address": {
"street": "Musterstr.",
"street_number": "42",
"additional_address_data": "Whg. 103",
"postal_code": "09999",
"city": "Musterstadt",
"country": "DE"
},
"email": "mike@example.net",
"mobile": "+491775555555",
"phone": "+495555555555"
}
    },
"container": {
"object": "payment.containers",
"id": "PCT_SF9XGHPVC2NSQX03V86EREAMMET7AZ"
},
"transactions": [
{
"object": "payment.transactions",
"id": "PCI_FDBREW9ZS7P6FTN4ZY2ATC6NK0QWO7"
}
],
"created": "2020-10-29T15:53:11+01:00",
"updated": "2020-10-29T15:53:25+01:00",
"status": "created",
// ...
"payment_method": "creditcard",
"trans_id": "30093750",
"iframe_url": "https://securepay.epayworldwide.com/securepay/pay.php?TID=93999999&IDENT=93999999_2910...",
// ...
}

In this case you must redirect the customer to the iframe_url. The customer then goes through the 3-D Secure process.

Despite its name, you must not open the iframe_url within an iframe (<iframe>):

  • 3-D Secure checks can leave the iframe and switch to full-screen. In this case, the success (success_url) or failure URL (failure_url) of the shop is not opened inside the iframe, but in the uppermost browser window (DOM window.top).
  • Some popular browsers have very strict same-origin restrictions for third party content, so that cookie technology will not work inside iframes. Most external authorization flows cannot be completed.

After the 3-D Secure process, the customer is redirected back to the success_url or failure_url you passed in the /prepare call. When the success_url is called, the Smart Transaction has status approved. You can then start the Smart Transaction and capture the payment. If auto_capture is set, the payment is already captured, and the Smart Transaction has status ok, received or collection.

When the failure_url is called, you must repeat the payment process.

Capture the Payment

The way to capture an authorized payment is the same for all payment methods.

Usually you use "auto_capture": true. Then no extra call is needed.

To start the authorized Smart Transaction, call POST Smart/Transactions/STX_xxx/start.

Request
POST /api/v2/Smart/Transactions/STX_33PXAW2YN2NJTPM5KPGMK7QF5PBVA2/start HTTP/1.1
Host: connect-testing.secuconnect.com
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Accept: application/json

If everything is fine, the API responds with 200 OK:

Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "smart.transactions",
"id": "STX_33PXAW2YN2NJTPM5KPGMK7QF5PBVA2",
// ...
"transactions": [
{
"object": "payment.transactions",
"id": "PCI_FDBREW9ZS7P6FTN4ZY2ATC6NK0QWO7"
}
],
"created": "2020-03-27T10:55:23+01:00",
"updated": "2020-03-27T10:56:41+01:00",
"status": "ok",
// ...
}

Status ok, received or collection means you can deliver. Status pending means you have to wait for one of these statuses. Status failed means the payment failed, and you must repeat the payment process.

Testing

Screenshots for production access

For custom checkout (Web and Android), take screenshots of your test integration while you test. Google requires them when you request production access. For details, see Google's guide Publish your integration for Web or Publish your integration for Android.

For Android apps, test as described in the Google Pay Android developer documentation.

Test environments

Use the secuconnect test environment (connect-testing.secuconnect.com). In the Google Pay™ API, set the environment to TEST. The Google Pay™ payment sheet then shows Google's own test cards.

Test cards

Card

Provided by

Result

Visa ••••1111

Google

Success, or failure if the 3-D Secure challenge is failed

Visa Debit ••••1112

Google

Rejected immediately

Mastercard ••••4444

Google

Success, or failure if the 3-D Secure challenge is failed

Mastercard Debit ••••4445

Google

Rejected immediately

Visa 4635 4400 0000 2298

secupay

Success, or failure if the 3-D Secure challenge is failed

Mastercard 5520 3300 0000 2296

secupay

Success, or failure if the 3-D Secure challenge is failed

For the secupay test cards, enter any expiry date and CVC in a valid format: the expiry date must be in the future, and the CVC must have three digits. For the complete list of Google test cards, see Test card suite.

3-D Secure challenge simulator

Enter 1234 to complete the challenge successfully. Enter any other value, for example 5678, to make it fail.

Simulating a declined payment

To simulate a declined payment, set basket_info.sum to 100005 (in cents, EUR 1,000.05) when you create the Smart Transaction.

Test cases

Case

How to test

Expected result

PAN_ONLY, 3-D Secure successful

Visa ••••1111 or Mastercard ••••4444, code 1234

Redirect to iframe_url, then success_url; status approved

PAN_ONLY, 3-D Secure failed

Same cards, any other code

failure_url is called; repeat the payment process

Immediate rejection

Visa Debit ••••1112 or Mastercard Debit ••••4445

The /prepare call returns an error, not a redirect to iframe_url. The Smart Transaction has status failed; repeat the payment process.

Declined payment

basket_info.sum = 100005

Redirect to iframe_url, then failure_url is called; repeat the payment process

CRYPTOGRAM_3DS

Android device with an eligible payment card added in Google Wallet

Status approved (no redirect)

Publish Your Integration

To use Google Pay™ in a production environment, you must submit your integration to Google for approval. Please refer to Publish your integration for Web or Publish your integration for Android.

If you use Smart Checkout, only the columns marked 'Hosted' apply.

Before submission, please ensure that the following checklist has been completed in full.

Branding

Requirement

Android

Web

Hosted

☐

Make sure that the first and most prominent mention of Google Pay™ includes the trademark symbol ™. Do not use the symbol where Google Pay is shown as a payment option.

needed

needed

needed

☐

If you provide Google Pay™ as a payment method to your customers, you must use the official Google Pay logo and button assets in compliance with Google Pay Android brand guidelines and Google Pay web brand guidelines, without modifications to the Google Pay™ asset colors, proportions, or appearance.

needed

needed

needed

Accepted Use

Requirement

Android

Web

Hosted

☐

Adhere to Google policies: All merchants are required to follow the Google Pay and Wallet API's Acceptable Use Policy and accept the terms defined in the Google Pay API Terms of Service.

needed

needed

needed

Implementation Paths

Requirement

Android

Web

Hosted

☐

If you provide Google Pay™ to Web or Android applications, you must follow our process described in this guide.

needed

needed

n/a

☐

If you provide Google Pay™ to Android applications, you must follow the official Google documentation such as Google Pay Android developer documentation, Google Pay Android integration checklist and Google Pay Android brand guidelines.

needed

n/a

n/a

☐

If you provide Google Pay™ to Web applications, you must follow the Google Pay Web developer documentation, Google Pay Web integration checklist and Google Pay Web brand guidelines.

n/a

needed

n/a

☐

If you provide Google Pay™ by using Smart Checkout (our hosted checkout and payment page), you must call the secuconnect API from the server back-end. You must not display the hosted page inside an iframe.

n/a

n/a

needed

☐

Make sure that you generate proper IsReadyToPayRequest and PaymentDataRequest objects needed for your integration. The source for each parameter value is described in this guide. This includes completing the registration with the Google Pay & Wallet Console to obtain a Google merchant ID (merchantId).

needed

needed

n/a

☐

Prepare screenshots of your test integration that show Google Pay™ in your website (Web) or in your app (Android). You upload them in the Google Pay & Wallet Console when you request production access.

needed

needed

n/a

Implementation Details

Requirement

Android

Web

Hosted

☐

Depending on the merchant's contract, we provide 3DS on Google Pay PAN_ONLY transactions. For both Google Pay PAN_ONLY transactions and any non-Google Pay card transactions, you must implement the needed process variant for 3-D Secure (3DS). This process is described in detail in the section ‘Authorize the Payment’ of this guide.

needed

needed

n/a

☐

If you provide Google Pay™ to Web or Android applications, you must set both gateway and gatewayMerchantId to the values received from us.

As a supported payment service provider with the Google Pay API, our integration lets you as a merchant use Google Pay API's gateway integration type, where we handle all of the decryption on your behalf.

When you integrate with the Google Pay API as a merchant, ensure that you set the following values in the TokenizationSpecification object:

  • gateway: set to "secupay"
  • gatewayMerchantId: set this value to the secupay contract ID you receive during onboarding ("GCR_...")

Here's an API configuration example:

"tokenizationSpecification": {
"type": "PAYMENT_GATEWAY",
"parameters": {
"gateway": "secupay",
"gatewayMerchantId": "<Contract ID GCR_... assigned by secupay>"
}
}

needed

needed

n/a

☐

Our integration supports two types of card credentials:

  1. PAN_ONLY: physical card details stored in Google Pay™
  2. CRYPTOGRAM_3DS: tokenized virtual card stored on device

You must not set values for allowedAuthMethods other than these two. See 'Google Pay™ Button Integration'.

If your integration includes PAN_ONLY, the application must implement the process variant for 3-D Secure (3DS). This process variant is described in the section ‘Authorize the Payment’ of this guide.

If your integration includes only CRYPTOGRAM_3DS, the application does not need to implement 3DS, because the authentication is always performed by Google Pay™.

needed

needed

n/a

☐

Depending on the merchant's contract, we support VISA and Mastercard card networks with the Google Pay API. You can pass these values in the allowedCardNetworks property and find the appropriate values in Google Pay's web developer documentation and Google Pay's Android developer documentation. This is described in detail in the sections ‘Google Pay™ Button Integration’ and (if applicable) ‘Obtaining Button Parameters Dynamically’ of this guide.

needed

needed

n/a

☐

Whether you need to request the address and phone number from Google Pay depends on your needs, the exact implementation (e.g. whether you use express checkout) and obligations communicated by us. If a billing address is required for processing, see BillingAddressParameters.

If you receive a billing address from Google Pay, you must pass the full address and, if known, the phone number to our API. The process is described in detail in the section ‘Authorize the Payment’ of this guide.

needed

needed

n/a

☐

Make sure that the Google Pay encrypted payment data and transaction data are sent to our servers through the API calls described in the section ‘Authorize the Payment’ of this guide.

needed

needed

n/a

See Also

Further information:

Other payment methods: