[ad_1]
Posted by Stephen McDonald, Developer Relations Engineer, Google Pay
Join A number of Cost Gateways with Google Pay and Firebase
We lately launched a sequence of open supply samples demonstrating the server-side integration between Google Pay and a wide range 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 attainable by lowering the time funding in integrating a number of APIs and consumer libraries.
A current research 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 the use 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 move a fee token from the Google Pay API to your Cloud Firestore database. The extension will pay attention for a request written to the trail outlined throughout set up, after which ship the request to the PSP’s API. It should then write the response again to the identical Firestore node.
Open Supply
Like all Firebase Extensions, the Google Pay Firebase Extension is completely open supply, so you possibly can modify the code your self to vary the performance as you see match, and even contribute your modifications again through pull requests – the sky is the restrict.
Moreover, because the extension is backed by the aforementioned PSP samples challenge, the identical set of PSPs are supported. Wish to see your favourite PSP supported? Head on over to the PSP samples challenge which accommodates directions for including it.
Summing it up
Whether or not you are new to Google Pay or Firebase, or an present consumer of both, the brand new Google Pay extension is designed to avoid wasting 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 right now within the Firebase console.
What do you suppose? Observe us on Twitter for the newest updates @GooglePayDevs
Do you have got any questions? Tell us within the feedback beneath or tweet utilizing #AskGooglePayDevs.
[ad_2]