johnny773 Posted March 4, 2020 Report Posted March 4, 2020 Hi I've registered to use square in Australia but notice when I enable Square as a payment gateway it does not have AUD as a supported currency? Please let me know how this can be enabled. Thanks Quote
Tyson Posted March 4, 2020 Report Posted March 4, 2020 If AUD is available for Square checkout, you can update the currency list in the gateway file under /components/gateways/nonmerchant/square/square.php to add AUD similar to the others. Quote
johnny773 Posted March 5, 2020 Author Report Posted March 5, 2020 Thanks Tyson, I've enabled this and square is available as a payment option now, but I'm testing this out and it appears there are v2 sandbox api's square has now and the integration only works with legacy sandbox api's (depreciated)? if I move to the live square system blesta does not support it gives errors "missing required parameter"? Assuming the extension needs to be updated to support v2 APIs for Square integration https://developer.squareup.com/docs/testing/legacy-sandbox Quote
Tyson Posted March 6, 2020 Report Posted March 6, 2020 It sounds like you will need to use their legacy sandbox for testing, but you can use the Square Checkout API in production without issues. I can't say what the "missing required parameter" error refers to exactly. I recommend taking a look at the gateway logs in Blesta to see the raw response from the gateway. That may point to the specific problem. Quote
johnny773 Posted March 10, 2020 Author Report Posted March 10, 2020 Thanks Tyson, here are the logs from the gateway paying through Square on the production API: /b2020/client/pay/confirm/ O:8:"stdClass":1:{s:6:"errors";a:1:{i:0;O:8:"stdClass":4:{s:8:"category";s:21:"INVALID_REQUEST_ERROR";s:4:"code";s:26:"MISSING_REQUIRED_PARAMETER";s:6:"detail";s:27:"Missing required parameter.";s:5:"field";s:5:"order";}}} Quote
Tyson Posted March 10, 2020 Report Posted March 10, 2020 It's odd that it believes the 'order' field is missing. I took a look at the API included with Square in Blesta and it most certainly sets that parameter. Perhaps you could re-upload the source files for the Square gateway to your web server from the Blesta zip you downloaded? Also, what happens when run on the sandbox? There may also be other requirements for Square to work properly, for example, only some card types are accepted in Australia, and I think the minimum amount for a transaction could be $1. Quote
webcity Posted November 15, 2021 Report Posted November 15, 2021 Hi I'm also in Australia and using AUD which Square supports. Im' using the Square payment plugin v1.4. I've looked at the square.php file but can't find where to add the AUD currency? Cheers Quote
Paul Posted November 16, 2021 Report Posted November 16, 2021 17 hours ago, webcity said: Hi I'm also in Australia and using AUD which Square supports. Im' using the Square payment plugin v1.4. I've looked at the square.php file but can't find where to add the AUD currency? Cheers Try editing /components/gateways/nonmerchant/square/config.json { "version": "1.4.0", "name": "Square.name", "description": "Square.description", "authors": [ { "name": "Phillips Data, Inc.", "url": "http://www.blesta.com" } ], "currencies": ["CAD", "GBP", "USD"], "signup_url": "https://squareup.com/signup" } Add AUD to the list like the other currencies, maintaining the same format. Quote
webcity Posted November 16, 2021 Report Posted November 16, 2021 Thanks for your help. That solved the problem. Cheers Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.