Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Accept payments on your Python/Flask based website with cards, wallets, and key local payment methods

License

Notifications You must be signed in to change notification settings

zapay-pagamentos/adyen-python-online-payments

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adyen Checkout integration demo

This repository includes examples of PCI-compliant UI integrations for online payments with Adyen. Within this demo app, we've created a simplified version of an e-commerce website, complete with commented code to highlight key features and concepts of Adyen's API. Check out the underlying code to see how you can integrate Adyen to give your shoppers the option to pay with their preferred payment methods, all in a seamless checkout experience.

Integrations

Python with Flask demos of the following client-side integrations are available in this repository:

Requirements

  • Python 3.5 or greater
  • Python libraries:
    • flask
    • requests

Installation

  1. Clone this repo
  2. Navigate to root level of repo
  3. Run source ./setup.sh to:
    • Create and activate a virtual environment
    • Download the necessary python dependencies

Usage

  1. Update the config file config.ini with your API key, Origin Key, and merchant account name like below:
    merchant_account = TestMerchantAccount
    checkout_apikey = SampleAPIKey
    origin_key = SampleOriginKey
    
  2. Make sure your (venv) is activated by running source ./venv/bin/activate from your projects root.
  3. Run ./start.sh to:
    • Initialize the required environment variables. This step is necessary every time you re-activate your (venv)
    • Run flask
  4. Visit http://localhost:8080 and select an integration type!

Contributing

We commit all our new features directly into our GitHub repository. Feel free to request or suggest new features or code changes yourself as well!!

License

MIT license. For more information, see the LICENSE file in the root directory

About

Accept payments on your Python/Flask based website with cards, wallets, and key local payment methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 33.5%
  • HTML 27.2%
  • CSS 21.4%
  • JavaScript 17.2%
  • Shell 0.7%