I’m developing a mobile application and would like to integrate Google Pay to our app. I’ve implemented this GitHub - square/in-app-payments-react-native-plugin and when I used the Location ID in the square developer console, the google token always return false thus it errors out.
Do I need to link Square with Google Business account before I can use Google API? I’ve read this documentation Enable Google Pay but it doesn’t say anything about Google Business account.
Please help me out.
Regards,
Skye
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
In-App Payments SDK Quickstart
In-App Payment Solutions
React Native Plugin: In-App Payments SDK
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
No, you don’t need to link Square with a Google Business account to use Google Pay with the In-App Payments SDK. The process involves integrating Google Pay with the In-App Payments SDK on your Android device.
You need to follow the steps outlined in the documentation you mentioned, which include adding Google Pay build dependencies, updating your activity class for Google Pay, enabling Google Pay in your activity onCreate method, and getting a Google Pay token in your activity onActivityresult method, among others.
Also, ensure that you’re a Square seller based in the United States, Canada, the United Kingdom, or Australia, as Google Pay for the In-App Payments SDK is only available for Square sellers based in these countries.
If you’re testing in the Square Sandbox, make sure to set the Developer Dashboard application page to Sandbox mode and configure the SDK with a Sandbox application ID before completing the instructions.
Remember, the Google Pay application must be installed on the Android devices that your application is distributed to, and the device user must have added a Square-supported payment method to Google Pay.
If you’re still having issues, it might be worth checking your implementation against the steps in the documentation again, or there might be an issue with the specific error message you’re receiving.
This answer was reviewed by @Bryan-Square.
Thank you, I found out that the environment config was incorrect. I wonder if it’s possible to save the payment method on the customer file when the customer is using Google Pay?
At this time the ability to store a Google Pay card on file isn’t currently possible. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 
Thanks Bryan for the prompt reply. I really appreciate it 