🔲Square
To set up the Square app, log in to your Square account, go to https://developer.squareup.com/console/en/apps.
Press “+”

Enter the name of the application

Customize as you wish or skip the next 2 windows.


Under credentials you can switch to a sandbox and production account.
Go to the production account.

Go to webhooks -> subscriptions - > add subscription.

Enter the name of the webhook, in the URL enter https://square.apps.digitalwallet.cards/square/webhook
In Events select only: payment.created
payment.updated
refund.created
refund.updated

Click save.
Now in the loyaltydigital.cards account, go to integrations and connect the square app.

Select a card template (stamp, cashback, discount or reward). Note with stamp and points mechanics (in stamp and reward cards) accrual should be done through the scanner, automatic accrual will not be done through the marketplace.
Enter the merchant ID (your saved integration ID in step one) and Square APP Access Token

Select an accrual rule (for the whole cheque; for a cheque over a certain amount; for certain items)

Select delivery channels for card installation links.

Create an invoice or accept payment through a virtual terminal. After its payment order details will be transferred to loyaltydigital.cards. If the order is canceled, the points will be deducted from the card.

If a customer with this phone number and email has a loyalty card, they will be awarded points. If the customer is not in the system, it will be created, the card will be issued and the link to install the card will be sent to the selected delivery channels (connected mailers in your account are required)
Attention! The currency in the loyaltydigital.cards account and in the app must be the same.