Google Pay

From Barion Documentation
Revision as of 10:15, 30 September 2020 by Botza (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
WARNING
This article is incomplete. It may change significantly without any notice, so don't rely on any content you find here yet. Please check back later.

Google Pay™ is a payment option for the customer. It securely stores the customer's card information and hands it over to the merchant for processing. The process ensures that the card information stays secure and encrypted, the merchant does not know the details of the card.

Payment Process

This picture describes the payment process:

  1. The customer clicks the Google Pay button. A window will pop up where the customer can choose a previously saved card to charge or even provide a new one.
  2. The JS code receives the encrypted card information.
  3. The JS code send the encrypted information to the merchant's server side
  4. The merchant's server side gathers all the information to start a payment and calls the Barion API
  5. The Barion API handles the request, decrypts the packages and charges the card. The result of the payment is sent back to the caller.
  6. The merchant's server communicates the result to the client side and the webshop renders the result of the payment.

Integration

IMPORTANT
To integrate this feature you have to develop the integration yourself! You need to understand Javascript code and is is also required to modify your webshop's server code!

These are the steps that you have to complete to use Google Pay on your website:

  1. Register a wallet in Barion and create a shop
  2. Implement the Google Pay button on your webshop's client side
  3. Implement the Barion API call on your webshop's server side

Creating a shop in Barion

To be able to use Barion as a

Implement the Google Pay button

First read through the introduction in Google's documentation to see what you need to do to accept payments via Google Pay.