Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anand2312/test-razorpay
Testing out the Razorpay payment gateway interface, by using it's Python SDK along with FastAPI.
https://github.com/anand2312/test-razorpay
Last synced: 21 days ago
JSON representation
Testing out the Razorpay payment gateway interface, by using it's Python SDK along with FastAPI.
- Host: GitHub
- URL: https://github.com/anand2312/test-razorpay
- Owner: anand2312
- Created: 2021-09-27T09:29:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-22T13:02:31.000Z (about 3 years ago)
- Last Synced: 2024-10-29T15:15:13.546Z (2 months ago)
- Language: HTML
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing Razorpay
![Preview](https://kxrfsnhxqitzsegngyki.supabase.in/storage/v1/object/public/uploads/rpay-demo.gif)
Testing out the Razorpay payment gateway interface, by using it's Python SDK along with FastAPI.
## Steps
[The razorpay standard web integration](https://razorpay.com/docs/payment-gateway/web-integration/standard/) page explains the process pretty well.1. Gather user info needed and ascertain amount of transaction
2. Place order to razorpay (the function `client.order.create` had some inconsistencies with the example on the page, see src)
3. Use the `order_id` returned by step 2 to lead to checkout page
3. Done!You should ideally also keep track of order IDs by yourself on the server side, but that isn't covered here.
## Project test
Clone the repository, `cd` into itDownload test API keys from your razorpay dashboard and add them to a `.env` file with the keys `KEY_ID` and `KEY_SECRET`
Run `poetry install`
Run `poetry run uvicorn app:app --reload`