Accept payments using the Coinbase Charges API.
Check out the tutorial.
-
Fork/Clone
-
Create and activate a virtual environment:
$ python3 -m venv venv && source venv/bin/activate
-
Install the requirements:
(venv)$ pip install -r requirements.txt
-
Apply the migrations:
(venv)$ python manage.py migrate
-
Add your Coinbase Commerce API key and webhook secret to settings.py file:
COINBASE_COMMERCE_API_KEY = '<your coinbase api key here>' COINBASE_COMMERCE_WEBHOOK_SHARED_SECRET = '<your coinbase webhook secret here>'
-
Run the server:
(venv)$ python manage.py runserver