Google Pay
Last updated
Was this helpful?
Last updated
Was this helpful?
Google Payâ„¢ transactions can be processed via the Saferpay Payment Page, without much effort from you side. Note that Google Pay is not a classic means of payment, but rather a digital wallet. Your customers will still pay with Visa, Mastercard, or whatever credit card has been saved inside the wallet, thus the actual recorded payment method will correspond to this. However, Saferpay will also return information that this transaction has been performed through Google Pay. Furthermore, all options and limitations of the used means of payment apply, if not mentioned otherwise in this chapter.
The following chapter will guide you through the steps required in order to activate and use Google Pay.
The handling of Google Pay payments with Saferpay requires:
The corresponding Saferpay eCommerce licence and thus the existence of a valid identification with a username and password for the Saferpay system.
Availability of at least one active Saferpay terminal by which payments can be carried out and availability of the associated Saferpay TerminalId.
An active card acquiring contract with an for at least one of the following brands: , , .
The general integration of Google Pay can only be done via the , or via and requires the following things to be noted:
Google Pay is only available with SpecVersion 1.25 or higher.
The notification URLs, inside theNotification
conatiner are mandatory, in order to avoid missing payment successes. See the for further information.
Google Pay does not support the usage of the Address Form, used by the Payment Page! However you can acquire the address saved inside the wallet itself, e.g. for an .
The Condition
parameter does only work for "PAN only" transactions.#
Google Pay needs special attention for .
Since Google Pay is not a classical payment method, but a digital wallet, the supported features depend on the payment means, that are used.
Furthermore, the merchant can only accept payment methods, that are activated on the specified terminal Id.
The payment means within the wallet are then processed via the normal processors.
For example: If a card holder selects his Visa card, the card is then processed as such, through Google Pay as the wallet.
Within Google Pay itself, Saferpay Supports the following featureset:
Pay with Cryptogram
✅
✅
Pay with PAN only
✅
✅
3-D Secure
(Cryptogram/PAN only)
✅/✅
✅/✅
The activation of Google Pay for your Saferpay account, be it live, or on the test-environment, requires next to no effort and can be done in a matter of seconds.
However, there are two options available to you, that represent the two integration methods available to you.
You have to decide first, which option you want to use -you can use both, if you want- and then proceed to the activation itself:
2 - Next, select the e-Commerce, or Secure PayGate terminal on which you want to activate Google Pay.
3 - Navigate to the Wallets section, there you will find Google Pay.
4 - Activate Google Pay either for the Payment Page, or for the server to server Business flow.
If you are on the Test-Environment, please always use the Google Pay Simulator!
5 - You will be prompted with a message, to confirm your choice. Click Activate, to activate Google Pay.
6 - And you are done! Google Pay is now available for you on your Saferpay Terminal.
However there are some optional features, you can implement, outside of the normal Payment Page flow.
Due to restrictions from Google, Saferpay is not allowed to also directly select Google Pay! If you use this method, Google Pay will be displayed on the Payment Page, with the user having to select it.
If you are using PaymentMethods,
you must also submit Wallets
, if you want Google Pay to be displayed. Also, if you are just submitting one payment method, the Payment Page will still directly jump to the card entry form, skipping Google Pay.
Saferpay also offers the option for you to integrate Google Pay directly into your application. This allows a more integrated and seamless solution, as it does not require the usage of the payment page.
Please follow the following steps, in order to directly integrate Google Pay.
It is important to know, that, at this stage, you are directly integrating the Google Pay Widget here and not Saferpay. Google Pay covers the gathering of your clients account data, while Saferpay will use it to create a transaction.
This also means, that your integration underlies all the terms and conditions, rules and guidelines, defined by Google!
Furthermore, please read the following guidelines and documentation:
For Web-Integration:
For Android:
Which integration-method you chose is up to you.
However, the one thing to take note of is to define the correct Payment Gateway, so Saferpay may process your clients data. Google already provides a code example, that has to be edited in the following way:
Set the gateway
to worldlinesaferpay
and the gatewayMerchantId
to the terminalId of the terminal, you have activated Google Pay on.
Once done, you can proceed to integrate Google Pay with Saferpay.
The important thing is, that you have to integrate Google Pay to the point, where you gather the Google Pay Payment Token which then needs to be passed to Saferpay.
Once you have the token, you need to submit it to the Saferpay payment gateway. In order to do so, you first need to pass the token to your backend, so it may be used in a server-to-server request.
How you do this, is up to you. You could use a normal POST, an AJAX-method, or other means to do so.
However never integrate the server-to-server communication to Saferpay on client-side, as it requires the Saferpay API credentials to be present. These could be extracted at this point, allowing an attacker easy access to your account!
Never store sensitive Data and Credentials on client-side!
Do not de-serialize the token as JSON. It must be passed as a string as is.
Saferpay takes the token, analyzes it and, depending on which of the two above methods has been chosen, one of the two results can occour:
The transaction will then behave like any other transaction, that has been initiated by the Transaction Interface.
There are two exception to this.
The exception to this rule is . Google Pay does not support MOTO transactions.
Only , and are supported through Google Pay at this point.
PAN Only: 3DS/Authentication is handled through Saferpay .
While the handles both cases automatically, during implementation, in order to handle both cases correctly.
The first option represents the integration through our and is the easiest way of using Google Pay.
The second option represents the integration through our transaction interface, also called a , which requires more effort, but also offers more flexibility on your end.
1 - First step is to log into the Saferpay Backoffice, there you have to navigate to the .
The Payment Page Integration follows the normal flow and Guidelines, . The handling of all Google Pay related aspects -calling the Google Pay API , displaying information, 3-D Secure etc.- will be done by the Payment Page automatically and thus is none of your concern!
If you want to directly select Google Pay, you have to use the parameter Wallets within the !
If you intend to use Google Pay via , said iFrame must have the attribute allowpaymentrequest="true"
atatched to it. Otherwise the payment will not be possible.
Make sure, that you have activated Google Pay for Business, as mentioned under .
Google has an . For example a normal , but other integrations, like are also possible.
Especially in case of mobile APPs, we recommend a Client-Server modell, .
This is done via the , however the process is a little diffrent in the beginning.
Google Pay can follow two basic flows, being PAN only and a payment using a cryptogram. The latter is limited to android-devices, using the chrome browser, however there is one major difference between these two, that you must take into account, when integrating Google Pay through the .
However, before it comes to that, you must submit the payment token to Saferpay, which is easily done, by putting it into the PaymentMeans.GooglePay.PaymentToken
parameter, with the request.
In this mode, Google Pay only prvides the payment means to Saferpay. From here on, the transaction behaves like any other transaction done via the Transaction Interface, so you can go to the and continue from there.
This is, where things can deviate from the standard flow. The difference between A and B lies within . While A does like any other transaction, on Android devices, Google Pay takes advantage of the integrated biometric functions (e.g. the finger-print sensor), in order to perform 3D Secure on the device. This makes the redirect, to Saferpay to perform , rather pointless.
To reflect this, you'll get the following :
The interesting part is the RedirectRequired
parameter. If a cryptogram has been detected, this parameter will return false, indicating, that you can skip the redirect. Simply do so, by continuing Transaction Interface flow.
If you have enabled on your terminalId, then the redirect will be still required, as this feature is executed on Saferpay-side.
If AND are both disabled on your terminalId, 2-A will also show RedirectRequired: false
!
Simply activate Google Pay for your terminal on the test environment (see ). That will take care of everything necessary for the . Google Pay on the Payment Page also supports
For the Server-to-Server method, you can use our in conjunction with our , in order to test GooglePay Server-To-Server, using the normal test-cases, our cards offer you. The generated payment tokens just simply have to be submitted to Saferpay, .