February 26, 2022 03:50 pm GMT
Original Link: https://dev.to/testacc127000/razorpay-payment-django-3gjj
Razorpay payment DJANGO
Steps to integrate Razorpay
Setting up Razorpay account.
Storing API keys in settings.py
Installing Razorpay library.
Creating order using Razorpay API.
Creating order at backend and also creating Razorpay order.
- Show template
- Show views
- render to payment.html
- Get info of call back URL
- Done with creating order.
Making payment.
Handling payment success and failure.
- Razorpay makes a post request
- with the help of that handling success/failure
- Done with payment.
- Final checks for all platforms
https://gist.github.com/Nishant127/ed0e02cfb0ae0da3fb82f17b21252ca4
import redata = "# Steps to integrate
* Setting up Razorpay account.
* Storing API keys in settings.py
* Installing Razorpay library.
* Creating order schema.
* Creating order at backend and also creating Razorpay order.
* Show template
* Show views
* render to payment.html
* info of call back URL
* Making payment.
* Handling payment success and failure.
* Razorpay makes a post request
* with the help of that handling success/failure
![](https://s3.us-west-2.amazonaws.com/secure.notion-static.com/9ef0a154-3e34-4e4a-b946-1c681b4cf75a/rpay_medium1.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220224%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220224T063859Z&X-Amz-Expires=3600&X-Amz-Signature=12d05448f1554ae6664b89e0f6c02bcd460750c127cab66cfdc7b31095a0fdc6&X-Amz-SignedHeaders=host&x-id=GetObject)
![](https://images.unsplash.com/photo-1499636136210-6f4ee915583e?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb)
"pattern = re.compile(r'\[([^][]+)\](\(((?:[^()]+|(?2))+)\))')for match in pattern.finditer(data): description, _, url = match.groups() print(f"{description}: {url}")
Original Link: https://dev.to/testacc127000/razorpay-payment-django-3gjj
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To