Skip to content
PHP/Laravel sample application for the Tradenity eCommerce API.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
storage
tests
.env.example
.gitattributes
.gitignore
LICENSE
README.md
artisan
camerastore-php-laravel-sample.iml
composer.json
composer.lock
gulpfile.js
package.json
phpunit.xml
server.php

README.md

Welcome to the Laravel CameraStore sample application for Tradenity ecommerce API PHP SDK

This is sample application for Tradenity ecommerce API using the PHP SDK using the Laravel framework.

This sample application is free and opensource, we encourage you to fork it and use it as a base for your future applications.

Live demo

Here you can find live demo of the Camera store sample application. This is the application we are going to build here.

Prerequisites

(Will install automatically via composer)

Create store and load sample data

  • If you are not yet registered, create a new Tradenity account.
  • After you login to your account, go to Getting started page, click "Create sample store", this will create a new store and populate it with sample data
  • From the administration side menu, choose "Developers" > "API Keys", you can use the default key or generate a new one.

Setup your credentials

First of all, you have to get API keys for your store, you can find it in your store Edit page. To get there navigate to the stores list page, click on the Edit button next to your store name, scroll down till you find the API Keys section.

Initialize the library

Add your Store keys to config/tradenity.php file, also your stripe public key.

return [
    'stripe_key' => 'pk_xxxxxxxxxxxxxxxxxxxx',
    'api_key' => 'sk_xxxxxxxxxxxxxxxxxxxxxx'
];

Run the application

php artisan serve

Tutorials and guides

We also provide a detailed explanation of the code of this sample applications in the form of a step by step tutorials:

Camera store for Laravel PHP web framework tutorial.

You can’t perform that action at this time.