Posted by Stephen McDonald, Developer Relations Engineer, Google Pay
Join A number of Cost Gateways with Google Pay and Firebase
We not too long ago launched a collection of open supply samples demonstrating the server-side integration between Google Pay and quite a lot of Cost Service Suppliers (PSPs). These samples additionally present how you can create a unified interface for integrating a number of PSPs, making integrations as straightforward as potential by lowering the time funding in integrating a number of APIs and shopper libraries.
A latest examine by 451 Analysis confirmed that for retailers with over 50% of gross sales occurring on-line, 69% of them used a number of PSPs. We first demonstrated with the aforementioned samples how one can implement a constant interface to a number of PSPs, streamlining your codebase whereas additionally offering extra flexibility for the long run. We have now taken this one step additional and introduced this unified PSP interface to the Firebase platform, by means of a Firebase Extension for Google Pay, making it simpler than ever to combine Google Pay with a number of PSPs.
Google Pay Firebase Extension
Firebase Extensions are open supply pre-packaged bundles of code that builders can simply pull into their apps, and are designed to extend productiveness, and supply prolonged performance to your apps with out the necessity to analysis, write, or debug code by yourself. Following this line, the Google Pay Firebase Extension brings the unified PSP interface to builders’ Firebase apps.
With the Google Pay Firebase Extension put in, you possibly can cross a fee token from the Google Pay API to your Cloud Firestore database. The extension will hear for a request written to the trail outlined throughout set up, after which ship the request to the PSP’s API. It would then write the response again to the identical Firestore node.
Like all Firebase Extensions, the Google Pay Firebase Extension is solely open supply, so you possibly can modify the code your self to alter the performance as you see match, and even contribute your adjustments again through pull requests – the sky is the restrict.
Moreover, because the extension is backed by the aforementioned PSP samples venture, the identical set of PSPs are supported. Wish to see your favourite PSP supported? Head on over to the PSP samples venture which incorporates directions for including it.
Summing it up
Whether or not you are new to Google Pay or Firebase, or an current consumer of both, the brand new Google Pay extension is designed to save lots of you much more effort and time when integrating Google Pay and any variety of Cost Service Suppliers together with your software.
Get began with the extension at present within the Firebase console.
What do you assume? Comply with us on Twitter for the most recent updates @GooglePayDevs
Do you may have any questions? Tell us within the feedback under or tweet utilizing #AskGooglePayDevs.