Hi K,
EasyStore has an official Square gateway. It appears as Square (element squareup, version 1.0.1) under EasyStore → Settings → Payments → Available payment gateways. If you haven't installed it from there, do that first.
1. The Notification URL
You're right that your plugin's name is squareup. The "easystore" value in the Plugin Type field is the plugin group, not the name. EasyStore builds the webhook URL the same way for every gateway, so yours is:
https://www.ast-simulators.com.au/index.php?option=com_easystore&task=payment.onPaymentNotify&type=squareup
Paste it into your Square Sandbox webhook subscription. It must match exactly, including https and www, because Square signs each notification using the URL you registered.
After you save the subscription, Square shows a Signature key. Paste it into the Test Webhook Secret field in the Square plugin settings.
2. Events
The one that matters is payment.updated, which fires when a payment completes or fails. payment.created and the refund.* events are optional extras. If the plugin's settings page lists the events it needs, use those instead.
3. The order page error
"Unknown format specifier ')'" is a PHP formatting error. It happens when text containing a % sign, such as (2.9%), is passed through sprintf or Text::sprintf. It isn't a payment or token problem. The order page started to render and then failed on one piece of text. Since the payment worked, check these:
- Labels saved on order 1001. Look for a
% in the payment method name, a fee description, or a discount or tax label (for example "Square fee (2.9%)").
- Language overrides. Check System → Language Overrides for any string you've edited that contains
%.
- Versions. Make sure the Square plugin and EasyStore are both on their latest versions.
To find the exact line, go to System → Global Configuration → Server, set Error Reporting to Maximum, and enable Debug System. Reload the order page and post the stack trace, which shows the file and line.
To confirm the cause, place a second sandbox order with no discount code. If that order page loads, the % is in the data on order 1001.
Best Regards,