Skip to content

Latest commit

 

History

History

day96

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Day 96 - An Online Shop

Concepts Practised

  • Create a Web Server with Flask
  • URL Building with Flask
  • Flask URL Paths and the Flask Debugger
  • Python Decorator Functions and the @ Syntax
  • Stripe API
  • Create sample page with Stripe API DOCS (https://stripe.com/docs/checkout/quickstart)
  • Go to [http://localhost:4242/checkout.html]

  • Credit Card Numbers for TEST / Payment succeeds (4242 4242 4242 4242)
  • Credit Card Numbers for TEST / Payment requires authentication (4000 0025 0000 3155)
  • Credit Card Numbers for TEST / Payment is declined (4000 0000 0000 9995)

An Online Shop

success

Accept a Payment with Stripe Checkout

Stripe Checkout is the fastest way to get started with payments. Included are some basic build and run scripts you can use to start up the application.

Running the sample

  1. Build the server

''' pip3 install -r requirements.txt '''

  1. Run the server

''' export FLASK_APP=server.py python3 -m flask run --port=4242 '''

  1. Go to http://localhost:4242/checkout.html

https://blog.naver.com/soboruuu88/223064306754