- What is doublethreedigital/sc-digital-products?
- It is an addon for Simple Commerce, the Laravel e-commerce package, that lets you sell digital products instead of physical ones. It removes shipping and fulfilment steps from the checkout flow and delivers secure, expiring download links to customers once payment is confirmed. You install it alongside Simple Commerce in an existing Laravel application.
- Do I need Simple Commerce installed before adding this package?
- Yes. This is an addon rather than a standalone store, so a working Simple Commerce installation is a prerequisite. Set up Simple Commerce, its products and your payment gateway first, then require this package to add digital product behaviour. Check the repository README for the exact install steps and any publishing or migration commands.
- How do I install sc-digital-products with Composer?
- Install it with Composer using composer require doublethreedigital/sc-digital-products. Because it extends Simple Commerce, keep the addon version aligned with the major version of Simple Commerce you are running. Follow any post-install instructions in the README, such as publishing config or running migrations, before creating your first digital product.
- How do customers receive their download links after payment?
- Once an order is marked as paid, the addon generates download links for the digital products in that order and makes them available automatically, so you do not have to send files manually. The links are intended to be secure and expiring rather than permanent public URLs. In most setups customers reach them through the order confirmation or receipt flow.
- Do the download links expire, and can I limit downloads?
- The package is built around expiring, secure download links so that a shared URL does not grant indefinite access to your files. Expiry and any usage limits are configured through the addon's settings; check the README for the available options and defaults. If you need stricter controls, such as per-customer or per-order limits, review the configuration before going live.
- Which Laravel and PHP versions does this package support?
- Support follows the Simple Commerce release you are using, since the addon runs inside that package's order and checkout lifecycle. Check the composer.json constraints and the README compatibility notes before upgrading Laravel or PHP. In practice you should match the addon version to the Simple Commerce version already installed in your application.
- Can I sell physical and digital products in the same store?
- Yes. Digital product behaviour is applied per product, so you can keep physical items using the normal Simple Commerce shipping and fulfilment flow while digital items skip it. Orders that mix both types should still work, though it is worth testing checkout and fulfilment on a mixed cart. Review how your shipping rules behave when an order contains only digital items.
- How do I test digital product purchases in my Laravel application?
- Use Simple Commerce's testing helpers and a fake or test payment gateway so you can mark an order as paid without calling a real provider. Then assert that the generated download links exist, resolve correctly and expire as expected. Cover the mixed-cart case and the unpaid case as well, to confirm links are never issued before payment completes.
- What happens to download access if an order is refunded or cancelled?
- Download access is tied to the order's payment status, so an order that is no longer paid should not produce fresh links. Bear in mind that a link already issued may remain valid until it expires, which is why short expiry windows matter for digital goods. Test your refund and cancellation flows to confirm access is revoked in the way you expect.
- Is sc-digital-products actively maintained, and what are the alternatives?
- It is maintained by Double Three Digital, the team behind Simple Commerce, so releases generally track Simple Commerce versions. Check the repository's release history and issue tracker to judge current activity before committing. Alternatives include building the download-link logic yourself on top of Simple Commerce, or using a dedicated Laravel digital-downloads package if you do not need a full store.