Hello developers,
I have successfully implemented Square’s Reader SDK in my React Native application. Now, I want to integrate Apple Pay and Google Pay functionality as well.
To do this, I tried using the react-native-in-app-payments
package. However, when I include this package in my project, my builds start crashing.Z
Is there a specific compatibility issue between the Reader SDK and the react-native-in-app-payments
package? Or am I missing any configuration step for integrating Apple Pay and Google Pay with the Reader SDK in a React Native project?
Any guidance or resources would be greatly appreciated!
Thank you!
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
Reader SDK
In-App Payment Solutions
In-App Payments SDK Quickstart
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.
The Reader SDK and the In-App Payments SDK (which includes react-native-in-app-payments
) are separate SDKs and are not designed to be used together in the same application.
The Reader SDK is designed for taking in-person payments using Square hardware, while the In-App Payments SDK is designed for taking payments within a mobile application, including digital wallet payments like Apple Pay and Google Pay.
If you want to integrate Apple Pay and Google Pay functionality in your React Native application, you should use the In-App Payments SDK. However, you would need to remove the Reader SDK from your application to prevent any conflicts or crashes.
If you need to take in-person payments using Square hardware, you should continue using the Reader SDK, but note that it does not support digital wallet payments like Apple Pay and Google Pay.
In summary, you would need to choose the SDK that best fits your needs - either the Reader SDK for in-person payments with Square hardware, or the In-App Payments SDK for in-app payments including Apple Pay and Google Pay.
This answer was reviewed by @Bryan-Square.