
Security News
VulnCon 2025: NVD Scraps Industry Consortium Plan, Raising Questions About Reform
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
A simplified way to integrate payments into websites and applications using API responses.
A simple Python Package to integrate Phonepe payments in your application.
It is a UPI powered payment System which provide various api to process payment in this we have used the test api provided the phonepe for payment processing.
POST https://api-preprod.phonepe.com/apis/pg-sandbox/pg/v1/pay
Parameter | Type | Description |
---|---|---|
salt Key | string | Required. Your salt Key |
Salt Index | int | Required. Your salt Index |
Merchant Id | string | Required. Your Merchant Id is Required. |
GET https://api-preprod.phonepe.com/apis/pg-sandbox/pg/v1/status/${merchant_id}/${transaction_id}"
Parameter | Type | Description |
---|---|---|
merchant Id | string | Required. Your Merchant Id is Required. |
Transaction Id | string | Required. Id of the Transaction is Required to Check status. |
salt Key | string | Required. Your salt Key |
Salt Index | int | Required. Your salt Index |
To run this project, you will need to add the following environment variables to your .env file
Salt_Key
API KEY
Merchant Id
I'm a full stack developer...
install phonepe-payment using pip
pip install phonepe-payment
start project
Initialize of Payment class is Required
args Required:-
Paramater | Type | Required/optional | Description |
---|---|---|---|
user_id | string/int | Required | Required for user verification |
amount | int | Required | amount in rupees |
Mobile Number | Number | Required | mobile Number of user is Required |
RedirectUrl | http | Optional | Redirect Url is optional to redirect user after payment is Done |
CallbackUrl | http | optional | Callback Url is optional to send the payment status |
Salt_key | string | optional | this is optional but required for production as default using test key |
Transaction_id | string | optional | Automatically generated by the system |
merchant_id | string | optional | this is optional but required for production as default using test merchant id |
payment_page_redirect | boolean | optional | this is optional by default is is using False to not to open the payment page |
args Required:-
Paramater | Type | Required/optional | Description |
---|---|---|---|
Transaction_id | string | optional | Required same as the transaction id generated in while InitalizePayment() |
merchant_id | string | optional | this is optional but required for production as default using test merchant id |
Salt_key | string | optional | this is optional but required for production as default using test key |
For support, email devpancholigt2004@gmail.com
FAQs
A simplified way to integrate payments into websites and applications using API responses.
We found that phonepe-transaction demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.