Giter Site home page Giter Site logo

rsusik / stripe-fastapi-demo Goto Github PK

View Code? Open in Web Editor NEW
46.0 3.0 8.0 17 KB

Stripe payment in FastAPI

License: MIT License

Shell 5.61% Ruby 1.38% HTML 18.85% CSS 50.21% JavaScript 2.27% Python 21.68%
fastapi stripe payment python fast api demo example stripe-fastapi-demo stripe-fastapi-example

stripe-fastapi-demo's Introduction

Stripe payment using FastAPI

Accept a payment (prebuilt checkout page using fastapi)

This code use FastAPI and Stripe for payments and is mostly based on this example which use Flask.

This repository includes example of Prebuilt Checkout page integration. Below is comparison of both methods.

Methods

Prebuilt Checkout page (docs) Custom payment flow (docs)
Lower complexity. Higher complexity.
Customize logo, images, and colors. Customize all components with CSS.
Add payment method types with a single line change. Implement each payment method type as a custom integration.
Built-in support for Apple Pay, and Google Pay. Integrate Apple Pay and Google Pay with extra code.
Redirect to Stripe hosted page. Customers stay on your site.
Small refactor to collect recurring payments. Large refactor to collect recurring payments.
Input validation and error handling built in. Implement your own input validation and error handling.
Localized in 25+ languages. Implement your own localization.

Payment Method Type Support

Payment Method Type Prebuilt Checkout page (docs) Custom payment flow (docs)
ACH Credit Transfer
ACH Debit
Afterpay/Clearpay
Alipay
Apple Pay
Bacs Direct Debit
Bancontact
BECS Direct Debit
Boleto
Cards
EPS
FPX
giropay
Google Pay
GrabPay
iDEAL
Klarna
Multibanco
OXXO
Przelewy24 (P24)
SEPA Direct Debit
Sofort
WeChat Pay

Installation

You'll find more detailed instructions for each integration type in the relevant READMEs (links to original repo):

Origin

This code was originally based on Flask, and the source codes may be found at https://github.com/stripe-samples/accept-a-payment.

stripe-fastapi-demo's People

Contributors

rsusik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.