Google Pay™

GPay Integration

Table of Contents

Introduction

GooglePay is a type of Digital Wallet and acts as a virtual Payment Device, by allowing C9PG access to logged in customers’ payment information, stored in their Google Account.

C9PG uses secure credentials to obtain the payment data, which is then used with the relevant merchant account.

The merchant account is selected normally, with the GMID.

Here is an example of the Google Pay JSON transaction:

{
  "GMID": "1110222484",
  "GTID": "GT1120095178",
  "GMPW": "GMPW3010300378",
  "TransType": "Sale",
  "Medium": "Credit",
  "MainAmt": "1001",
  "GooglePayload": "{\"signature\":\"MEMCIBD7zOfOintAG/gjg6XenH+x8uM//2b3L/i+GKlhOMtxAh89lRkECojoDHc/Ohis4hvivc2EtCNf/k69MWMCemBN\",\"intermediateSigningKey\":{\"signedKey\":\"{\\\"keyValue\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEq1r61W296dtgCNIJYS9KTl5bp8lMPjz7SDEjE5Zk27iiuane/oEZbOQYlF8YurHvitrLyFN9ROU8p+9Rts7feg\\\\u003d\\\\u003d\\\",\\\"keyExpiration\\\":\\\"1603261713365\\\"}\",\"signatures\":[\"MEUCIQDnvLuziBPYWDmMuUR493lDMYoZYccEPi7sCYHC+EILkgIgacX5hiHoxxD7HRfm9xG9lYNHAoV5i2OaFpggArB0uwQ\\u003d\"]},\"protocolVersion\":\"ECv2\",\"signedMessage\":\"{\\\"encryptedMessage\\\":\\\"+Oc0tH5ZWHTyrUlxBOimgM1zyIeOEKJAf300KNBlTUUUU1RzswJMhXa6Ehc9haOTnfYdqcQRx+1f7ztnqbHujPfITzRCjTA8DPMHfYe/Z/MhPPZr9MIHubFjizenRU/tBjm6f/WuAjMj+CoDxDUwR7cD+ZMwAvYzyY5A3hBG/iJrJfqvYcF2g9GNZFwYI4MsgrYh8SM4tViEVr//B4AxSGNiCp8Utgyy7qilRWcViEzl/t2cqXxK9p4lG7xkN+nC4qOcNTwtQASmX3WqUA2nt3yb7J9t84iAKYIFvWxdiHLonxs89bfanpgLW9ZG4Dt2YycGZo3+wVbCFDzQ8MlzM+ibTXifaTYyWWIEEZFrm3nkVQxsu337VGUdtA60uM8GxawG7zARWeoE+6wC+E2G6kUyXYybm5IBDXQMYWprjhWLyAB1D+bjXzldcG8rUvbk2zHzzg4BEf36kzHwqmCWiuxKKtzGTZce5XQqF1Jd8p9c/Gc\\\\u003d\\\",\\\"ephemeralPublicKey\\\":\\\"BGJ+y+S+rQ+6IywwstXdh2nzHwP3LKcvI58XAN3LW3PoSNlWuNluRJ6cJ3dn7XP6dl+m2y8SuzXFxelPspg8moY\\\\u003d\\\",\\\"tag\\\":\\\"v8r09doA5qKuA8SeLuQVgKCsJxdorUgoj/Rmh0/5MLk\\\\u003d\\\"}\"}",
  "EntryMode": "Manual",
  "NeedSwipeCard": "N"
}
 

Getting Started with Google Pay

The first step is to register with the Google Pay Business Console and receive a Google merchant ID.  Please, contact us for more info

 

Configuring C9PG Google Pay Interface

  const tokenizationSpecification = {
        type: 'PAYMENT_GATEWAY',
        parameters: {
            'gateway': 'c9pg',
            'gatewayMerchantId': 'xxx'
        }
    };

How-To Sample

The following code illustrates a complete simple Google Pay turnaround

Sample C9PG Google Pay Web Page

To view source, right click and select “View Source”.

Please customize to your needs.

Supported Card Networks

Visa, Mastercard, American Express, Discover, JCB

const allowedCardNetworks = ["AMEX", "DISCOVER", "INTERAC", "JCB", "MASTERCARD", "VISA"];

Supported Authorization Methods

Allowed Transaction Type SALE, PAN ONLY, CRYPTOGRAM_3DS

const allowedCardAuthMethods = ["PAN_ONLY", "CRYPTOGRAM_3DS"];

Important: By using our SDK, you agree to  Google Pay APIs Acceptable Use Policy and accept the terms defined in the Google Pay API Terms of Service.

Scroll to Top