semvec/pypi-packages huggingface dataset:
faspay 2.1
Python package for Faspay online payment gateway.
Requires Python: >=3.5
Keywords: faspay,python faspay,payment gateway

==============
Python Faspay 
==============
Simple python module to help use Faspay Payment Gateway API.

Docs: https://faspay.co.id/docs/index-business.html#faspay-business


Installation
============
Install from PyPI:

::

    $ pip install faspay


How To Use
===========  

::

    from faspay import Faspay

    faspay = Faspay()
    faspay.user_id = "xxxx"
    faspay.merchant_id = "botxxxxx"
    faspay.merchant_password = "secretpassword"
    faspay.merchant_name = "example.com"
    faspay.mode = "Production" # by default is `Development`

    payment_data = {
        # input your payment data here
    }

    response_post_data = faspay.post_data(**payment_data)
    print(response_post_data)


or by extending the class  

::

    from faspay import Faspay

    class FaspayAPI(Faspay):
        user_id = "xxxx"
        merchant_id = "botxxxxx"
        merchant_password = "secretpassword"
        merchant_name = "example.com"
        mode = "Production" # by default is `Development`

        def send_post_data(self):
            payment_data = {
                # input your payment data here
            }

            return self.post_data(**payment_data)