├── .env.testing ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml.dist ├── src ├── Exception.php ├── SquareConfig.php ├── SquareService.php ├── builders │ ├── CustomerBuilder.php │ ├── DiscountBuilder.php │ ├── OrderBuilder.php │ ├── ProductBuilder.php │ ├── SquareRequestBuilder.php │ ├── TaxesBuilder.php │ └── WebhookBuilder.php ├── config │ └── nikolag.php ├── contracts │ └── SquareServiceContract.php ├── database │ ├── factories │ │ └── ModelFactory.php │ └── migrations │ │ ├── 2021_01_04_140949_add_scope_nikolag_deductible_table.php │ │ ├── 2024_05_29_145918_add_location_id_to_orders_table.php │ │ ├── 2024_06_24_000000_create_webhook_subscriptions_table.php │ │ ├── 2024_06_24_000001_create_webhook_events_table.php │ │ └── 2025_08_20_131705_alter_signature_key_to_text.php ├── exceptions │ ├── AlreadyUsedSquareProductException.php │ ├── DeclinedSquareCardException.php │ ├── InvalidSquareAmountException.php │ ├── InvalidSquareCurrencyException.php │ ├── InvalidSquareCvvException.php │ ├── InvalidSquareExpirationDateException.php │ ├── InvalidSquareNonceException.php │ ├── InvalidSquareOrderException.php │ ├── InvalidSquareSignatureException.php │ ├── InvalidSquareZipcodeException.php │ └── MissingPropertyException.php ├── facades │ └── Square.php ├── models │ ├── Customer.php │ ├── Discount.php │ ├── OrderProductPivot.php │ ├── Product.php │ ├── Tax.php │ ├── Transaction.php │ ├── WebhookEvent.php │ └── WebhookSubscription.php ├── providers │ └── SquareServiceProvider.php ├── traits │ ├── HasCustomers.php │ └── HasProducts.php └── utils │ ├── Constants.php │ ├── Util.php │ └── WebhookProcessor.php └── tests ├── TestCase.php ├── TestDataHolder.php ├── Traits └── MocksSquareConfigDependency.php ├── WebhookMockBuilder.php ├── classes ├── Order.php └── User.php └── unit ├── CustomerTest.php ├── DiscountTest.php ├── OrderTest.php ├── ProductTest.php ├── SquareConfigTest.php ├── SquareServiceTest.php ├── SquareServiceWebhookEventTest.php ├── SquareServiceWebhookTest.php ├── TaxTest.php ├── UserTest.php ├── UtilTest.php ├── WebhookBuilderTest.php ├── WebhookEventTest.php ├── WebhookProcessorTest.php └── WebhookSubscriptionTest.php /.env.testing: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/.env.testing -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/Exception.php -------------------------------------------------------------------------------- /src/SquareConfig.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/SquareConfig.php -------------------------------------------------------------------------------- /src/SquareService.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/SquareService.php -------------------------------------------------------------------------------- /src/builders/CustomerBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/builders/CustomerBuilder.php -------------------------------------------------------------------------------- /src/builders/DiscountBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/builders/DiscountBuilder.php -------------------------------------------------------------------------------- /src/builders/OrderBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/builders/OrderBuilder.php -------------------------------------------------------------------------------- /src/builders/ProductBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/builders/ProductBuilder.php -------------------------------------------------------------------------------- /src/builders/SquareRequestBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/builders/SquareRequestBuilder.php -------------------------------------------------------------------------------- /src/builders/TaxesBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/builders/TaxesBuilder.php -------------------------------------------------------------------------------- /src/builders/WebhookBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/builders/WebhookBuilder.php -------------------------------------------------------------------------------- /src/config/nikolag.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/config/nikolag.php -------------------------------------------------------------------------------- /src/contracts/SquareServiceContract.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/contracts/SquareServiceContract.php -------------------------------------------------------------------------------- /src/database/factories/ModelFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/database/factories/ModelFactory.php -------------------------------------------------------------------------------- /src/database/migrations/2021_01_04_140949_add_scope_nikolag_deductible_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/database/migrations/2021_01_04_140949_add_scope_nikolag_deductible_table.php -------------------------------------------------------------------------------- /src/database/migrations/2024_05_29_145918_add_location_id_to_orders_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/database/migrations/2024_05_29_145918_add_location_id_to_orders_table.php -------------------------------------------------------------------------------- /src/database/migrations/2024_06_24_000000_create_webhook_subscriptions_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/database/migrations/2024_06_24_000000_create_webhook_subscriptions_table.php -------------------------------------------------------------------------------- /src/database/migrations/2024_06_24_000001_create_webhook_events_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/database/migrations/2024_06_24_000001_create_webhook_events_table.php -------------------------------------------------------------------------------- /src/database/migrations/2025_08_20_131705_alter_signature_key_to_text.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/database/migrations/2025_08_20_131705_alter_signature_key_to_text.php -------------------------------------------------------------------------------- /src/exceptions/AlreadyUsedSquareProductException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/AlreadyUsedSquareProductException.php -------------------------------------------------------------------------------- /src/exceptions/DeclinedSquareCardException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/DeclinedSquareCardException.php -------------------------------------------------------------------------------- /src/exceptions/InvalidSquareAmountException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/InvalidSquareAmountException.php -------------------------------------------------------------------------------- /src/exceptions/InvalidSquareCurrencyException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/InvalidSquareCurrencyException.php -------------------------------------------------------------------------------- /src/exceptions/InvalidSquareCvvException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/InvalidSquareCvvException.php -------------------------------------------------------------------------------- /src/exceptions/InvalidSquareExpirationDateException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/InvalidSquareExpirationDateException.php -------------------------------------------------------------------------------- /src/exceptions/InvalidSquareNonceException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/InvalidSquareNonceException.php -------------------------------------------------------------------------------- /src/exceptions/InvalidSquareOrderException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/InvalidSquareOrderException.php -------------------------------------------------------------------------------- /src/exceptions/InvalidSquareSignatureException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/InvalidSquareSignatureException.php -------------------------------------------------------------------------------- /src/exceptions/InvalidSquareZipcodeException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/InvalidSquareZipcodeException.php -------------------------------------------------------------------------------- /src/exceptions/MissingPropertyException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/exceptions/MissingPropertyException.php -------------------------------------------------------------------------------- /src/facades/Square.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/facades/Square.php -------------------------------------------------------------------------------- /src/models/Customer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/models/Customer.php -------------------------------------------------------------------------------- /src/models/Discount.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/models/Discount.php -------------------------------------------------------------------------------- /src/models/OrderProductPivot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/models/OrderProductPivot.php -------------------------------------------------------------------------------- /src/models/Product.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/models/Product.php -------------------------------------------------------------------------------- /src/models/Tax.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/models/Tax.php -------------------------------------------------------------------------------- /src/models/Transaction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/models/Transaction.php -------------------------------------------------------------------------------- /src/models/WebhookEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/models/WebhookEvent.php -------------------------------------------------------------------------------- /src/models/WebhookSubscription.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/models/WebhookSubscription.php -------------------------------------------------------------------------------- /src/providers/SquareServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/providers/SquareServiceProvider.php -------------------------------------------------------------------------------- /src/traits/HasCustomers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/traits/HasCustomers.php -------------------------------------------------------------------------------- /src/traits/HasProducts.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/traits/HasProducts.php -------------------------------------------------------------------------------- /src/utils/Constants.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/utils/Constants.php -------------------------------------------------------------------------------- /src/utils/Util.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/utils/Util.php -------------------------------------------------------------------------------- /src/utils/WebhookProcessor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/src/utils/WebhookProcessor.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/TestDataHolder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/TestDataHolder.php -------------------------------------------------------------------------------- /tests/Traits/MocksSquareConfigDependency.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/Traits/MocksSquareConfigDependency.php -------------------------------------------------------------------------------- /tests/WebhookMockBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/WebhookMockBuilder.php -------------------------------------------------------------------------------- /tests/classes/Order.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/classes/Order.php -------------------------------------------------------------------------------- /tests/classes/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/classes/User.php -------------------------------------------------------------------------------- /tests/unit/CustomerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/CustomerTest.php -------------------------------------------------------------------------------- /tests/unit/DiscountTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/DiscountTest.php -------------------------------------------------------------------------------- /tests/unit/OrderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/OrderTest.php -------------------------------------------------------------------------------- /tests/unit/ProductTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/ProductTest.php -------------------------------------------------------------------------------- /tests/unit/SquareConfigTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/SquareConfigTest.php -------------------------------------------------------------------------------- /tests/unit/SquareServiceTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/SquareServiceTest.php -------------------------------------------------------------------------------- /tests/unit/SquareServiceWebhookEventTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/SquareServiceWebhookEventTest.php -------------------------------------------------------------------------------- /tests/unit/SquareServiceWebhookTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/SquareServiceWebhookTest.php -------------------------------------------------------------------------------- /tests/unit/TaxTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/TaxTest.php -------------------------------------------------------------------------------- /tests/unit/UserTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/UserTest.php -------------------------------------------------------------------------------- /tests/unit/UtilTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/UtilTest.php -------------------------------------------------------------------------------- /tests/unit/WebhookBuilderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/WebhookBuilderTest.php -------------------------------------------------------------------------------- /tests/unit/WebhookEventTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/WebhookEventTest.php -------------------------------------------------------------------------------- /tests/unit/WebhookProcessorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/WebhookProcessorTest.php -------------------------------------------------------------------------------- /tests/unit/WebhookSubscriptionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NikolaGavric94/laravel-square/HEAD/tests/unit/WebhookSubscriptionTest.php --------------------------------------------------------------------------------