Bad news & partial good news @picolpierre1 @ralanyo @zwood @MikesClub
There’s a requirement for the SDK to generate a payment token in order to accept payments via Square.
It’s possible to do several “GET” requests from the API, (like get the customer’s orders and subscriptions).
I’ve been playing with this for a couple of days to try to figure this out but it appears that a custom component will be required that contains all of the necessary files to generate the payment token.
I did think of a work-around (but it requires purchasing outside of the app) where you can create products with square checkout purchase links.
Here’s how:
- Create a product in your Square account by going to the “Items” tab and click the “Create an Item” button.
- Enable “online checkout” on the bottom of the product creation screen.
- Save the item and copy the payment link.
- In your list of products (or any button where you plan on taking the payment), add a button with a link to the external payment link that you just copied OR you can link to a screen with a web view of the payment link.