Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed minute documentation bug in payments.md #263

Open
wants to merge 94 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
066f721
semgrep integration
javeeth Feb 22, 2022
f2ff14a
changes
thotakartheek004 Mar 7, 2022
d69ba9f
nosemgrep
thotakartheek004 Mar 7, 2022
fff9839
nosemgrep
thotakartheek004 Mar 7, 2022
6d7f4fa
nosemgrep
thotakartheek004 Mar 7, 2022
83f3013
changes
thotakartheek004 Mar 7, 2022
5dcf626
changes
thotakartheek004 Mar 7, 2022
12b73b7
changes
thotakartheek004 Mar 7, 2022
0352f2d
Merge pull request #186 from razorpay/semgrep_integration
thotakartheek004 Mar 7, 2022
a214b89
otp implement
ankitdas13 May 20, 2022
35fb125
customer doc correction
ankitdas13 Jun 14, 2022
27eb2ed
order doc correction
ankitdas13 Jun 14, 2022
ecd194f
fund doc correction
ankitdas13 Jun 14, 2022
6b0c8c1
token doc correction
ankitdas13 Jun 14, 2022
4744454
add fund link param
ankitdas13 Jun 14, 2022
75792d9
payment doc correction
ankitdas13 Jun 14, 2022
dc2ae1f
settlement doc correction
ankitdas13 Jun 15, 2022
a4b3cb8
refund doc correction
ankitdas13 Jun 15, 2022
ce6936d
fixed invoice doc
ankitdas13 Jun 17, 2022
7fa65e4
added tpv order
ankitdas13 Jun 20, 2022
364b2f7
added tpv payment
ankitdas13 Jun 20, 2022
a03715d
added tpv token
ankitdas13 Jun 20, 2022
a051d9b
fixed accourding comment
ankitdas13 Jun 28, 2022
f902b05
fixed according comments
ankitdas13 Jun 28, 2022
5e7d0ce
create order update parameter
ankitdas13 Jun 28, 2022
6239273
fixed according comments
ankitdas13 Jun 28, 2022
d993031
fixed according doc
ankitdas13 Jun 28, 2022
3d8286e
fixed according doc
ankitdas13 Jun 28, 2022
f238092
fixing according doc
ankitdas13 Jun 28, 2022
554eb55
update paramter & response
ankitdas13 Jun 29, 2022
1180fcc
fixed according sdkaudit doc
ankitdas13 Jun 29, 2022
deb969e
subscription doc correction
ankitdas13 Jun 29, 2022
b142989
addon doc correction
ankitdas13 Jun 29, 2022
06d0cf2
item doc correction
ankitdas13 Jun 29, 2022
3cb6e1b
paymentlink doc correction
ankitdas13 Jun 29, 2022
d56d973
smartcollect doc correction
ankitdas13 Jun 29, 2022
38e4081
update params in readme
ankitdas13 Jun 30, 2022
e719dca
transfer doc correction
ankitdas13 Jun 30, 2022
37dfc1c
create upi link update params
ankitdas13 Jun 30, 2022
f343ff0
added active param
ankitdas13 Jun 30, 2022
996d6fa
update delete addon
ankitdas13 Jun 30, 2022
5763be4
add double quotes
ankitdas13 Jun 30, 2022
aa8a5f7
added notes param
ankitdas13 Jun 30, 2022
89680fc
added partial payment param
ankitdas13 Jun 30, 2022
b6f225a
update response parameter
ankitdas13 Jul 1, 2022
3c1cad1
added notes param
ankitdas13 Jul 1, 2022
8689216
update param
ankitdas13 Jul 1, 2022
3d33bcd
update response and parameter
ankitdas13 Jul 1, 2022
ed24dd5
fixed according comments
ankitdas13 Jul 1, 2022
8008079
added fail_existing param
ankitdas13 Jul 1, 2022
14a6957
fixed according comments
ankitdas13 Jul 1, 2022
70050f0
fixed according comments
ankitdas13 Jul 1, 2022
e6fa144
response param change
ankitdas13 Jul 1, 2022
fede84e
add mandatory
ankitdas13 Jul 1, 2022
45aac00
response param update
ankitdas13 Jul 1, 2022
2391c11
Merge pull request #196 from razorpay/customer_doc_correction
ankitdas13 Jul 1, 2022
7c9d6bc
Merge pull request #194 from razorpay/otp_api
ankitdas13 Jul 1, 2022
62472d0
Merge pull request #198 from razorpay/settlement_doc_correction
ankitdas13 Jul 1, 2022
9c1f2a2
Merge pull request #197 from razorpay/refund_doc_correction
ankitdas13 Jul 1, 2022
cc30566
Merge pull request #201 from razorpay/invoice_doc_correction
ankitdas13 Jul 1, 2022
baf0188
Merge pull request #202 from razorpay/payment_doc_correction
ankitdas13 Jul 1, 2022
5ae88a2
Merge pull request #203 from razorpay/fund_doc_correction
ankitdas13 Jul 1, 2022
10afe36
Merge pull request #204 from razorpay/token_doc_correction
ankitdas13 Jul 1, 2022
8201891
Merge pull request #205 from razorpay/order_doc_correction
ankitdas13 Jul 1, 2022
2f6b6be
Merge pull request #208 from razorpay/qr_doc_correction
ankitdas13 Jul 1, 2022
fbbaca9
Merge pull request #209 from razorpay/emandate_doc_correction
ankitdas13 Jul 1, 2022
2585bf8
Merge pull request #210 from razorpay/card_doc_correction
ankitdas13 Jul 1, 2022
c2dfd57
Merge pull request #211 from razorpay/papernach_doc_correction
ankitdas13 Jul 1, 2022
9509b12
Merge pull request #212 from razorpay/registernach_doc_correction
ankitdas13 Jul 1, 2022
6f1d209
Merge pull request #213 from razorpay/upi_doc_correction
ankitdas13 Jul 1, 2022
b4fd63f
Merge pull request #214 from razorpay/registerEmandate_doc_correction
ankitdas13 Jul 1, 2022
7b1fd09
Merge pull request #217 from razorpay/item_doc_correction
ankitdas13 Jul 1, 2022
2cb9fb4
Merge pull request #218 from razorpay/subscription_doc_correction
ankitdas13 Jul 1, 2022
26ff1ca
Merge pull request #219 from razorpay/paymentlink_doc_correction
ankitdas13 Jul 1, 2022
3b6b884
Merge pull request #220 from razorpay/smartcollect_doc_correction
ankitdas13 Jul 1, 2022
17eb991
Merge pull request #221 from razorpay/transfer_doc_correction
ankitdas13 Jul 1, 2022
53d3755
Merge pull request #200 from razorpay/third_party_validation_payment
ankitdas13 Jul 1, 2022
c6dec90
Merge branch 'doc_api_correction' into third_party_validation
ankitdas13 Jul 1, 2022
53a8bb4
Merge pull request #199 from razorpay/third_party_validation
ankitdas13 Jul 1, 2022
af83bd7
Merge pull request #216 from razorpay/addon_api_correction
ankitdas13 Jul 1, 2022
da7e26c
update version
ankitdas13 Jul 1, 2022
912da6a
Merge pull request #193 from razorpay/doc_api_correction
ankitdas13 Jul 1, 2022
1da7ed3
create order params updated
ankitdas13 Jul 6, 2022
bd024a6
Merge pull request #222 from razorpay/papernach_param
ankitdas13 Jul 7, 2022
d59a40a
Removed unused test.py file
ankitdas13 Dec 6, 2022
1338f34
Merge pull request #244 from razorpay/remove_unused_file
ankitdas13 Dec 14, 2022
5d96a99
Create pull_request_template.md
prem-razorpay Jan 13, 2023
b313033
Merge pull request #247 from razorpay/changes-in-pull_request_template
ChandanSunag Feb 15, 2023
60df5f0
feat: Test coverage and automate publish (#251)
ankitdas13 Apr 27, 2023
6fa5fe2
feat: add partner's api's (#255)
ankitdas13 Aug 3, 2023
91b8662
version bump (#258)
ankitdas13 Aug 3, 2023
0854e38
update doc (#261)
ankitdas13 Aug 16, 2023
c07bf8b
Remove disclosed email (#262)
ankitdas13 Aug 16, 2023
ed53bff
fixed minute documentation bug in payments.md
Zorro30 Oct 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Note :- Please follow the below points while attaching test cases document link below:
### - If label `Tested` is added then test cases document URL is mandatory.
### - Link added should be a valid URL and accessible throughout the org.
### - If the branch name contains hotfix / revert by default the BVT workflow check will pass.

| Test Case Document URL |
|-----------------------------------------------|
| Please paste test case document link here.... |
81 changes: 81 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: CI
on:
push:
branches:
- master
tags:
- v[0-9]+.[0-9]+.[0-9]+*
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python -m build
python -m pip install --upgrade twine
python -m twine check dist/*

- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/
test:
name: Test Coverage
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install responses
pip install coverage
python ${{ github.workspace }}/setup.py install
- name: Run Tests
run: |
python -m coverage run -m unittest
python -m coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Publish packages to PyPi
run: |
python -m pip install --upgrade twine
set -ex
export VERSION=$(python3 setup.py --version)
python -m twine upload --verbose dist/razorpay-$VERSION-py3-none-any.whl dist/razorpay-$VERSION.tar.gz
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

5 changes: 2 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ on:

jobs:
deploy:

runs-on: ubuntu-latest
runs-on: ubuntu-latest # nosemgrep : semgrep.dev/s/swati31196:github_provided_runner
strategy:
max-parallel: 4
matrix:
Expand All @@ -30,4 +29,4 @@ jobs:
pip install responses
python3 setup.py install
- name: Run Tests
run: python3 -m unittest
run: python3 -m unittest
51 changes: 51 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: SecurityChecks
on:
pull_request: {}
push:
branches: ["master"]
schedule:
- cron: '30 20 * * *'
jobs:
semgrep:
name: Scan
runs-on: [ubuntu-latest] # nosemgrep : semgrep.dev/s/swati31196:github_provided_runner
steps:
- uses: actions/checkout@v2
- uses: returntocorp/semgrep-action@v1
with:
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
publishDeployment: 339
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

workflow_status:
runs-on: [ ubuntu-latest ] # nosemgrep : semgrep.dev/s/swati31196:github_provided_runner
name: Update Status Check
needs: [ semgrep ]
if: always()
env:
githubCommit: ${{ github.event.pull_request.head.sha }}
steps:
- name: Set github commit id
run: |
if [ "${{ github.event_name }}" = "push" ] || [ "${{ github.event_name }}" = "schedule" ]; then
echo "githubCommit=${{ github.sha }}" >> $GITHUB_ENV
fi
exit 0
- name: Failed
id: failed
if: (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) && github.ref != 'refs/heads/master'
run: |
echo 'Failing the workflow for github security status check.'
curl -X POST -H "Content-Type: application/json" -H "Authorization: token ${{ github.token }}" \
-d '{ "state" : "failure" , "context" : "github/security-status-check" , "description" : "github/security-status-check", "target_url" : "https://github.com/${{ github.repository }}" }' \
https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.githubCommit }}
exit 1
- name: Success
if: steps.failed.conclusion == 'skipped' || github.ref != 'refs/heads/master'
run: |
echo 'Status check has passed!'
curl -X POST -H "Content-Type: application/json" -H "Authorization: token ${{ github.token }}" \
-d '{ "state" : "success" , "context" : "github/security-status-check" , "description" : "github/security-status-check", "target_url" : "https://github.com/${{ github.repository }}" }' \
https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.githubCommit }}
exit 0
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file. The format

## Unreleased

## [1.4.1][1.4.1] - 2023-08-03

feat: Added new API endpoints.

Added account onboarding API (create, fetch, edit, delete)
Added stakeholders API (create, fetch, all, edit)
Added product configuration API (requestProductConfiguration, fetch, edit, fetchTnc)
Added webhooks API (create, fetch, all, edit, delete)
Added token sharing API (create, fetchToken, deleteToken, processPaymentOnAlternatePAorPG)
Added Documents API (uploadAccountDoc(, fetchAccountDoc, uploadStakeholderDoc, fetchStakeholderDoc)

## [1.3.1][1.3.1] - 2022-07-01

- Added Third party validation & Otp API for Payment (createUpi, validateVpa, otpGenerate, otpSubmit, otpResend)
- Update Documention

## [1.3.0][1.3.0] - 2022-02-01

### Added
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Razorpay Python Client

[![PyPI Version](https://img.shields.io/pypi/v/razorpay.svg)](https://pypi.python.org/pypi/razorpay) [![Coverage Status](https://coveralls.io/repos/github/razorpay/razorpay-python/badge.svg?branch=master)](https://coveralls.io/github/razorpay/razorpay-python?branch=master) [![PyPI](https://img.shields.io/pypi/pyversions/razorpay.svg)]() [![License](https://img.shields.io/:license-mit-blue.svg)](https://opensource.org/licenses/MIT)
[![PyPI Version](https://img.shields.io/pypi/v/razorpay.svg)](https://pypi.python.org/pypi/razorpay) [![Coverage Status](https://coveralls.io/repos/github/razorpay/razorpay-python/badge.svg?branch=master)](https://coveralls.io/github/razorpay/razorpay-python?branch=master) [![PyPI](https://img.shields.io/badge/python-3%20%7C%203.4%20%7C%203.5%20%7C%203.6-blue.svg)]() [![License](https://img.shields.io/:license-mit-blue.svg)](https://opensource.org/licenses/MIT)

Python bindings for interacting with the Razorpay API

Expand Down Expand Up @@ -35,6 +35,8 @@ For example, you can set the title to `Django` and version to `1.8.17`. Please e
that both app title and version are strings.

## Supported Resources
- [Account](documents/account.md)

- [Addon](documents/addon.md)

- [Item](documents/items.md)
Expand All @@ -43,6 +45,8 @@ that both app title and version are strings.

- [Token](documents/token.md)

- [Fund](documents/fund.md)

- [Order](documents/order.md)

- [Payments](documents/payment.md)
Expand Down Expand Up @@ -76,6 +80,12 @@ that both app title and version are strings.
- [Register NACH and Charge First Payment Together](documents/registerNach.md)

- [Payment Verification](documents/paymentVerfication.md)

- [Product Configuration](documents/productConfiguration.md)

- [Stakeholder](documents/stakeholder.md)

- [Webhook](documents/webhook.md)
---

## Bugs? Feature requests? Pull requests?
Expand Down
Loading