Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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.

Posted

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";}}}

Posted

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.

  • 1 year later...
Posted

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

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...