Square api

I’m just starting to look into setting up my website with more functionality than what is offered out-of-box, but I’ve never implemented an api on Wix before and need a little assistance. I would like to use the Square API that is offered by Squareup to generate payments etc… but I don’t know how to implement it. I’ve looked at installing the npm for square, but there are 2 versions, one of them is deprecated, and the other is unsupported. Would anyone be able to help point me in the right direction?

Thanks

Rob

Your best bet is to use the built-in Square integration offered by Wix. See the docs on how to connect Square as a Payment Provider for your site.

Or, if you really want to implement it yourself, you can get information on the Square API from the Square Developers Site . You will need to read about how to access 3rd party services in the article Velo: How to Access 3rd-Party Services with the Fetch API . You can see how another payment processor is implemented from Example: Stripe Payment Processing .