Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 1.37 KB

File metadata and controls

66 lines (40 loc) · 1.37 KB

Sendcloud Dynamic Checkout API - PHP Example Project

This repository hosts a simple PHP app that lists the delivery methods associated with your specified Sendcloud Dynamic Checkout Configuration

Documentation

Sendcloud Dynamic Checkout API Documentation

Environment Variables

To run this project, you will need to add the following environment variables to your keys.env file

API_KEY : Your Sendcloud API Public Key

SECRET_KEY : Your Sendcloud API Private Key

CHECKOUTID : The ID of the Dynamic Checkout Configuration you are testing

Run in Docker

Clone the project

  git clone https://github.com/AlexLamond/sendcloud-checkout-php-example

Go to the project directory and start the server

  docker compose -f "docker-compose.yaml" up -d --build

Launch the server

Run Locally

Clone the project

  git clone https://github.com/AlexLamond/sendcloud-checkout-php-example

Go to the web directory

  cd app

Install the dependancies

  composer install

Run the local PHP server

  php -S 127.0.0.1:8070

Launch the server

Contributing

Contributions are welcome, please add clear descriptions of changes made Pull requests should be committed with semantic naming