Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nonesubham/razorpay-flask-integration

A simple flask (python) code to integrate Razorpay using it's SDK. On successful transaction it uses Callback URL redirection after getting True on payment signature verification.
https://github.com/nonesubham/razorpay-flask-integration

razorpay razorpay-api razorpay-flask razorpay-payment razorpay-python

Last synced: about 1 month ago
JSON representation

A simple flask (python) code to integrate Razorpay using it's SDK. On successful transaction it uses Callback URL redirection after getting True on payment signature verification.

Awesome Lists containing this project

README

        

# RazorPay Integration In Flask (Python)

Razorpay SDK based payment integration in Flask (Python) with Callback URL Redirection on payment signature verification.

## Installation
```
pip install razorpay
```

## Update Your Razorpay Credentials
##### [Main.py]("https://github.com/Subhamsaurav/razorpay-flask-integration/blob/master/main.py")  Line 5

```
client = razorpay.Client(auth=("rzp_id", "rzp_secret key"))
```
##### [Index.html]("https://github.com/Subhamsaurav/razorpay-flask-integration/blob/master/templates/index.html")  Line 5

```
"key": "rzp_id"
```
## Change User Data
##### [Index.html]("https://github.com/Subhamsaurav/razorpay-flask-integration/blob/master/templates/index.html")  Line 13-17
```
"prefill": {
"name": "Gaurav Kumar",
"email": "[email protected]",
"contact": "9000090000"
},
```

## Running Tests
```
python main.py
```

## Issues? Changes?
Just open an issue/pull requests