# Razorpay Python Client
[![PyPI Version](https://img.shields.io/pypi/v/razorpay.svg?style=flat-square)](https://pypi.python.org/pypi/razorpay) [![Build Status](https://travis-ci.org/razorpay/razorpay-python.svg?branch=master)](https://travis-ci.org/razorpay/razorpay-python) [![License](https://img.shields.io/:license-mit-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)
Python bindings for interacting with the Razorpay API.
This is primarily meant for merchants who wish to perform interactions with the Razorpay API programatically.
$ pip install razorpay
You need to setup your key and secret using the following:
You can find your API keys at <https: dashboard.razorpay.com="" #="" app="" keys="">.
client = razorpay.Client(auth=("<your_api_key>", "<your_api_secret>"))
- Fetch all payments
- Fetch a particular payment
- Capture a payment
Note: <amount> should be same as the original amount while creating the payment
- Refund a payment
# for full refund
# for particular amount
Note: <amount_to_be_refunded> should be equal/less than the original amount
- fetch a particular refund
- fetch all refunds for a particular payment(same as payment refund fetch all)
- Create a new order
DATA should contain these keys
amount : amount of order
currency : currency of order
receipt : receipt id of order
payment_capture : 1 if capture should be done automatically or else 0
notes(optional) : optional notes for order
- fetch a particular order
- fetch all orders
- fetch Payments of order
- Create a new invoice
For List of params refer to this :-
- fetch a particular invoice
- fetch all invoices
## Bugs? Feature requests? Pull requests?
All of those are welcome. You can [file issues][issues] or [submit pull requests][pulls] in this repository.
TODO: Brief introduction on what you do with files - including link to relevant help section.