Skip to content

YellowPay/yellowdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yellow Demo

Demo code for creating and monitoring Yellow invoices using our Python SDK.

This is a simple Django server with two pages:

  1. A page to create an invoice in USD or AED
  2. A page to display the embedded invoice widget

This demo server just prints to the terminal when the invoice status changes - a real shopping cart integration would likely update an order management system and redirect customers to an order confirmation page.

Code comments contain additional documentation. For any other questions please email [email protected]

Thanks for using Yellow!

Setup Instructions

  • Create a python virtual environment and activate it
  • Install ngrok and run it, point it at local port 8080. Make note of the URL ngrok gives you.
  • Within the root directory of yellowdemo, type:
pip install -r requirements.txt
  • open the env.sh file and add your API_KEY, API_SECRET and DEMO_HOST. Then source the file with the following command:
source env.sh
  • Run the server!
python manage.py runserver 127.0.0.1:8080

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •