 provider

Square

Square account-  ,     Coin Moebius. Square location-  checkout .



field 
Access tokencheckout link  Square   . .
Webhook signature keySquare- 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

 :      . .



  1. Square Developer dashboard 

    developer.squareup.com- .    application,       Sandbox . Sandbox  ;  Live , Sandbox / Production toggle    production  . app  , Applications screen- + tile .

    Square Developer → Applications
  2. application- 

       application (  Coin Moebius),  Next .

    Square → Name your application
  3. access token- 

    app   Credentials- .  Sandbox / Production toggle    . Access token  copy icon   .

    Square → Credentials

     access token,  password  . token   Sandbox Production ,  .

  4. Location ID- 

     menu- Locations .   location Location ID . checkout   ,      location .

    Square → Locations
  5. Webhooks → Subscriptions 

    webhook endpoint  subscription   Square.  menu- Webhooks , Subscriptions ,  Add subscription .

    Square → Webhooks → Subscriptions → Add subscription
  6. 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 ( )  .

  7. subscription  

    subscription  Square  Webhooks  Enabled   . signing key  details panel   .

    Square → Webhooks → your subscription (Enabled)
  8. Signature key 

    subscription Properties panel-, Signature key  copy icon . Square-  webhook       Coin Moebius  .   subscription ,  connect    webhook.

    Square → your subscription → Signature key
  9. 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
  10. 

     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).



,    :

  1.    Environment- Testing- . sandbox -   ,      . (sandbox , live-  Testing ,   .)
  2. page- buy button  (HTML file  ), project-- .
  3.  sandbox  card- checkout .
  4. 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

provider  ?

provider  . account--  ,   buy button  .