{"id":18973696,"url":"https://github.com/64robots/checkout","last_synced_at":"2025-04-19T16:39:13.664Z","repository":{"id":38239773,"uuid":"227170413","full_name":"64robots/checkout","owner":"64robots","description":"Laravel Cart, Checkout, Orders and Coupons API with Nova Management","archived":false,"fork":false,"pushed_at":"2022-01-12T16:53:23.000Z","size":517,"stargazers_count":39,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T18:56:43.820Z","etag":null,"topics":["api","cart","checkout","laravel","nova"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/64robots.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-10T16:48:20.000Z","updated_at":"2025-01-02T16:15:24.000Z","dependencies_parsed_at":"2022-09-04T23:50:34.011Z","dependency_job_id":null,"html_url":"https://github.com/64robots/checkout","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Fcheckout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Fcheckout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Fcheckout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Fcheckout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/64robots","download_url":"https://codeload.github.com/64robots/checkout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223935,"owners_count":21232833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cart","checkout","laravel","nova"],"created_at":"2024-11-08T15:12:51.369Z","updated_at":"2025-04-16T09:33:41.530Z","avatar_url":"https://github.com/64robots.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://travis-ci.org/64robots/checkout\"\u003e\u003cimg src=\"https://travis-ci.org/64robots/checkout.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://en.wikipedia.org/wiki/MIT_License\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" alt=\"MIT License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Checkout\n\nThis package provides API endpoints and common functionality for cart, checkout, orders and coupons. You can use it with your own UI or use [Checkout Vue](https://github.com/64robots/checkout-vue) package that works with this API out of the box.\n\n### Installation\n\nYou can install this package via composer:\n```\ncomposer require 64robots/checkout\n```\nOnce installed, this package will automatically register its service provider.\n\nYou can publish the package migrations with:\n```\nphp artisan vendor:publish --provider=\"R64\\Checkout\\CheckoutServiceProvider\" --tag=\"migrations\"\n```\n\nAfter the migrations have been published, you can create package tables with:\n```\nphp artisan migrate\n```\nBy running migrations, these tables will be created:\n- `customers`\n- `products`\n- `cart`\n- `cart_items`\n- `orders`\n- `order_items`\n- `coupons`\n- `order_purchases` \n\nYou can also publish the package config with:\n```\nphp artisan vendor:publish --provider=\"R64\\Checkout\\CheckoutServiceProvider\" --tag=\"config\"\n```\n\nAfter the config has been published, you can find it's contents in `config/checkout.php`\n\n```php\nreturn [\n\n    /*\n     * Required parameters when submitting an order to /api/orders endpoint\n     */\n    'required' =\u003e [\n        'customer_email',\n        'shipping_first_name',\n        'shipping_last_name',\n        'shipping_address_line1',\n        // 'shipping_address_line2',\n        'shipping_address_city',\n        'shipping_address_region',\n        'shipping_address_zipcode',\n        'shipping_address_phone',\n        'billing_first_name',\n        'billing_last_name',\n        'billing_address_line1',\n         // 'billing_address_line2',\n        'billing_address_city',\n        'billing_address_region',\n        'billing_address_zipcode',\n        'billing_address_phone',\n    ],\n\n    /*\n     * Terms and conditions url used usually in the checkout UI\n     */\n    'toc_url' =\u003e '#',\n\n    /*\n     * Currency code that will be saved with every order and symbol\n     * that is usually used in the Cart, Checkout and Order UI\n     */\n    'currency' =\u003e [\n        'code' =\u003e env('CHECKOUT_CURRENCY_CODE', 'USD'),\n        'symbol' =\u003e env('CHECKOUT_CURRENCY_SYMBOL', '$')\n    ],\n\n    /*\n     * Percentage of Cart total and fixed fee will be stored for every\n     * order purchase (transaction)\n     */\n    'stripe' =\u003e [\n        'percentage_fee' =\u003e env('CHECKOUT_STRIPE_PERCENTAGE_FEE', 29 / 1000),\n        'fixed_fee' =\u003e env('CHECKOUT_STRIPE_FIXED_FEE', 30)\n    ],\n\n    /*\n     * Shipping city and state is automatically resolved from zip code\n     * using GeoNames service http://www.geonames.org/\n     *\n     * Country code constraints the search results\n     * to specific country\n     */\n    'geo_names' =\u003e [\n        'username' =\u003e env('CHECKOUT_GEO_NAMES_USERNAME', 'demo'),\n        'country_code' =\u003e env('CHECKOUT_GEO_NAMES_COUNTRY_CODE', 'US')\n    ],\n\n    /*\n     * Class names can be replaced and extended with your own logic\n     */\n    'product_model' =\u003e R64\\Checkout\\Models\\Product::class,\n    'customer_model' =\u003e R64\\Checkout\\Models\\Customer::class,\n    'cart_model' =\u003e R64\\Checkout\\Models\\Cart::class,\n    'cart_item_model' =\u003e R64\\Checkout\\Models\\CartItem::class,\n    'coupon_model' =\u003e R64\\Checkout\\Models\\Coupon::class,\n    'order_model' =\u003e R64\\Checkout\\Models\\Order::class,\n    'order_item_model' =\u003e R64\\Checkout\\Models\\OrderItem::class,\n    'product_resource' =\u003e R64\\Checkout\\Http\\Resources\\ProductResource::class,\n    'payment' =\u003e R64\\Checkout\\StripePaymentHandler::class\n];\n```\n\n### Nova\n\nYou can publish nova resources with:\n\n```\nphp artisan vendor:publish --provider=\"R64\\Checkout\\CheckoutServiceProvider\" --tag=\"nova\"\n```\n\n### Available API Endpoints\n\nOnce you install the package and run migrations, these API endpoints will be available in your application.\n\n[API Docs](https://github.com/64robots/checkout/wiki/API-Endpoints)\n\n## Licence\n\nCheckout is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64robots%2Fcheckout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F64robots%2Fcheckout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64robots%2Fcheckout/lists"}