Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
sslcommerz-python-api
Advanced tools
Provides a python module to implement payment gateway in python based web apps.
Via PIP
pip install sslcommerz-python-api
or via git
pip install git+https://github.com/dreygur/SSLCommerz-Python.git
#!usr/bin/env python
from decimal import Decimal
from sslcommerz_python_api import SSLCSession
mypayment = SSLCSession(
sslc_is_sandbox=True,
sslc_store_id='your_sslc_store_id',
sslc_store_pass='your_sslc_store_passcode'
)
mypayment.set_urls(
success_url='example.com/success',
fail_url='example.com/failed',
cancel_url='example.com/cancel',
ipn_url='example.com/payment_notification'
)
mypayment.set_product_integration(
total_amount=Decimal('20.20'),
currency='BDT',
product_category='clothing',
product_name='demo-product',
num_of_item=2,
shipping_method='YES',
product_profile='None'
)
mypayment.set_customer_info(
name='John Doe',
email='johndoe@email.com',
address1='demo address',
address2='demo address 2',
city='Dhaka', postcode='1207',
country='Bangladesh',
phone='01711111111'
)
mypayment.set_shipping_info(
shipping_to='demo customer',
address='demo address',
city='Dhaka',
postcode='1209',
country='Bangladesh'
)
# If you want to post some additional values
mypayment.set_additional_values(
value_a='cusotmer@email.com',
value_b='portalcustomerid',
value_c='1234',
value_d='uuid'
)
response_data = mypayment.init_payment()
# You can Print the response data
print(response_data)
{'status': 'SUCCESS', 'sessionkey': 'F650E87F23DD2A8FFCB4E4E333C13B28', 'GatewayPageURL': 'https://sandbox.sslcommerz.com/EasyCheckOut/testcdef650e87f23dd2a8ffcb4234fasf3b28'}
or
>>> response_data['status']
SUCCESS
>>> response_data['sessionkey']
F650E87F23DD2A8FFCB4E4E333C13B28
>>> response_data['GatewayPageURL']
https://sandbox.sslcommerz.com/EasyCheckOut/testcdef650e87f23dd2a8ffcb4234fasf3b28
{'status': 'FAILED', 'failedreason': 'Store Credential Error Or Store is De-active'}
or
>>> response_data['status']
FAILED
>>> response_data['failedreason']
'Store Credential Error Or Store is De-active'
It's a fork of Shahed Mehbub's sslcommerz-python
FAQs
Implements SSLCOMMERZ payment gateway in python based web apps.
We found that sslcommerz-python-api 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.