| field | |
|---|---|
| Access token | checkout link Square . . |
| Webhook signature key | Square- webhook . . |
| Location ID | Square location. . |
| Success URL / Cancel URL | . |
field
Access token
checkout link , account- .
Webhook signature key
Square- webhook , . access token- .
Location ID
location Square- , checkout . .
Success and Cancel URL
: . .
- Square Developer dashboard
developer.squareup.com- . application, Sandbox . Sandbox ; Live , Sandbox / Production toggle production . app , Applications screen- + tile .
Square Developer → Applications - application-
application ( Coin Moebius), Next .
Square → Name your application - access token-
app Credentials- . Sandbox / Production toggle . Access token copy icon .
Square → Credentials access token, password . token Sandbox Production , .
- Location ID-
menu- Locations . location Location ID . checkout , location .
Square → Locations - Webhooks → Subscriptions
webhook endpoint subscription Square. menu- Webhooks , Subscriptions , Add subscription .
Square → Webhooks → Subscriptions → Add subscription - subscription events
( coin-moebius). Notification URL- Square webhook (). , Events , events Coin Moebius , Save .
- : payment.created, payment.updated, refund.created, refund.updated, dispute.created, dispute.state.updated.
- Subscriptions ( ): subscription.created, subscription.updated, subscription.canceled, subscription.deactivated, invoice.payment_made, invoice.scheduled_charge_failed. , .
https://api.coinmoebius.com/webhook/square/<your project id>Square → Add a webhook subscription Coin Moebius dashboard- project project ID-; - . events , . URL connected provider card ( ) .
- subscription
subscription Square Webhooks Enabled . signing key details panel .
Square → Webhooks → your subscription (Enabled) - Signature key
subscription Properties panel-, Signature key copy icon . Square- webhook Coin Moebius . subscription , connect webhook.
Square → your subscription → Signature key - Coin Moebius- : Add provider → Square
project--, Providers tab , Add provider , Connect a service , Square . Success URL Cancel URL . Live tab-, Access token, Webhook signature key, Location ID , Save . sandbox ? Test tab- , Edit- live .
Coin Moebius → Add provider → Square -
Providers tab-- Square, . Square- webhook URL card, Edit Disconnect . sandbox , Test mode toggle .
Coin Moebius → Providers → Square (connected) card sandbox card. card 4111 1111 1111 1111 , CVV 111, , postal code ( 94103).
, :
- Environment- Testing- . sandbox - , . (sandbox , live- Testing , .)
- page- buy button (HTML file ), project-- .
- sandbox card- checkout .
- Transactions tab . , Testing . succeeded , webhook- .
, Environment Live- .
Verify- . dashboard-, access token location , Verify ( Verify test credentials) .
Verify.
access token Location ID . token Production Sandbox , .
signature , .
notification URL Square. Square- URL webhook URL- , , slash query string . endpoint- signature key .
.
Square Developer Console → Webhooks → your subscription → Send Test Event, .
location . id- location - checkout.
. access token signature key , . fields.
? Join our Discord