semvec/pypi-packages huggingface dataset:
pysslcmz 1.1.3
Implements SSLCOMMERZ payment gateway in python based web apps (python 3.8+).
License: MIT
Requires Python: >=3.8,<4.0
Keywords: SSLCommerz,sslcommerz,SSLCOMMERZ,bkash,nagod,upai,rocket

# SSLCOMMERZ Payment Gateway implementation in Python
Provides a python module to implement payment gateway in python based web apps.

## Installation
Via PIP
```bash
pip install pysslcmz
```
## Projected use
```python
from pysslcmz.payment import SSLCSession
from decimal import Decimal

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()
```

## Response parameters
### When Successfull with Auth and Payloads provided
> status

> sessionkey

> GatewayPageURL

#### Example
```python
>>> response_data['status']
SUCCESS
>>> response_data['sessionkey']
F650E87F23DD2A8FFCB4E4E333C13B28
>>> response_data['GatewayPageURL']
https://sandbox.sslcommerz.com/EasyCheckOut/testcdef650e87f23dd2a8ffcb4234fasf3b28
```

### When Failed
> status

> failedreason

#### Example
```python
>>> response_data['status']
FAILED
>>> response_data['failedreason']
'Store Credential Error Or Store is De-active'
```
python-plisio 2.0.2
Python SDK for Plisio API.
License: MIT
Requires Python: >=3.8.1,<4.0.0
Keywords: plisio,api,sdk,python,payments,crypto,gateway,crypto payment,bitcoin,etherium,blockchain,tron,BSC

# Python-Plisio-SDK

[![Poetry](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/johnthagen/poetry/poetry-badge/assets/badge/v0.json)](https://python-poetry.org/)
[![python](https://img.shields.io/badge/Python-%5E3.8.1-3776AB.svg?style=flat&logo=python&logoColor=tellow)](https://www.python.org)
![PyPI](https://img.shields.io/pypi/v/python-plisio?color=blue)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/152926ced23a45c6abb55af6884f890f)](https://app.codacy.com/gh/amiwrpremium/python-plisio/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
![GitHub](https://img.shields.io/github/license/amiwrpremium/python-plisio)
[![Documentation Status](https://readthedocs.org/projects/python-plisio/badge/?version=latest)](https://python-plisio.readthedocs.io/en/latest/?badge=latest)
[![Documentation Status](https://img.shields.io/badge/docs-mkdocs%20material-blue.svg?style=flat)](https://squidfunk.github.io/mkdocs-material/)
[![pydocstyle](https://img.shields.io/badge/pydocstyle-enabled-AD4CD3)](http://www.pydocstyle.org/en/stable/)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen)](https://github.com/pylint-dev/pylint)
[![Flake8 Status](./reports/flake8/flake8-badge.svg?dummy=8484744)](./reports/flake8/index.html)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/amiwrpremium/python-plisio/master.svg)](https://results.pre-commit.ci/latest/github/amiwrpremium/python-plisio/master)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/amiwrpremium/python-plisio/publish.yml?label=publish)

## About

[Plisio](https://plisio.net/) is a payment gateway for accepting
payments in cryptocurrencies. Plisio enables your customers to pay with
15+ cryptocurrencies, including Bitcoin, Ethereum, Litecoin, Dash, etc.

**I'm in no way affiliated with Plisio and this is not an official SDK.**

## Installation

Install using `pip` from [PyPI](https://pypi.org/project/python-plisio/):
> pip install python-plisio

Install from `git`
> pip install git+https://github.com/amiwrpremium/python-plisio.git

## Usage

See [examples](https://python-plisio.readthedocs.io/en/latest/examples/) for more usage examples.

## Documentation

See [documentation](https://python-plisio.readthedocs.io/en/latest/).

## License

See [LICENSE](LICENSE).

## Disclaimer

This is not an official SDK, and I am in no way affiliated with Plisio.