This is a template for DreamCommerce Shop SDK.
Template could be used as a boilerplate for your own app used with our shops.
Clone this repository or download ZIP with current version and extract its content to your application directory.
Use Composer and simply call composer install
.
In src/Config.php
there are several options to adjust. Specify your application ID, application secrets and database credentials.
An example database schemas are under sql
directory. Feel free using them. They are suitable for stock BillingSystem
.
Make sure it's reachable from the Web and you have enabled a SSL support (app won't work if your server has no SSL support enabled or incorrect certificate)
https://developers.dreamcommerce.com/developers/appstore/registration
Click the adequate link in your shop and test your sample app. This boilerplate application dumps categories list from desired shop.
An application consists of two components: the Billing System and an Application.
Billing System handles actions for install/uninstall and subscription. If your app is being installed to the shop, an App Store calls it with a request according to the manual: https://developers.dreamcommerce.com/developers/appstore/billing-system
An Application handles actions for your purposes. Feel free to extend it!
An App Store should be pointed to this file as an Billing System entrypoint.
Application bootstrap. Handles your logic.