PaymentProvider interface from the Payments Module using the Square Payments API. Its Webhook uses Square’s notification URL and request-body signature scheme.
Source: modules/square · npm: @86d-store/square
Installation
Configuration
Add the Module toconfig.json, then set the SQUARE_* environment variables. Do not put the access token in source or config.json. See Environment variables.
Webhook setup
In the Square Developer dashboard, open your application, go to Webhooks, and create a subscription forpayment.created and payment.updated pointing at: