Skip to content

pirl/pirlpay-python-sdk

Repository files navigation

pirlpay

The PirlPay API for automated payment processing pip install twine

  • API version: v1
  • Package version: 0.0.1

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import pirlpay 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import pirlpay

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import pirlpay
from pirlpay.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: Basic
configuration = pirlpay.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = pirlpay.BillingApi(pirlpay.ApiClient(configuration))
body = pirlpay.ProductTransaction() # ProductTransaction | 

try:
    api_response = api_instance.billing_products_transactions_create(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billing_products_transactions_create: %s\n" % e)
# Configure HTTP basic authorization: Basic
configuration = pirlpay.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = pirlpay.BillingApi(pirlpay.ApiClient(configuration))

try:
    api_response = api_instance.billing_products_transactions_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billing_products_transactions_list: %s\n" % e)
# Configure HTTP basic authorization: Basic
configuration = pirlpay.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = pirlpay.BillingApi(pirlpay.ApiClient(configuration))
body = pirlpay.SimplePayment() # SimplePayment | 

try:
    api_response = api_instance.billing_simple_payment_transactions_create(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billing_simple_payment_transactions_create: %s\n" % e)
# Configure HTTP basic authorization: Basic
configuration = pirlpay.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = pirlpay.BillingApi(pirlpay.ApiClient(configuration))

try:
    api_response = api_instance.billing_simple_payment_transactions_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billing_simple_payment_transactions_list: %s\n" % e)
# Configure HTTP basic authorization: Basic
configuration = pirlpay.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = pirlpay.BillingApi(pirlpay.ApiClient(configuration))
body = pirlpay.Subscription() # Subscription | 

try:
    api_response = api_instance.billing_subscriptions_create(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billing_subscriptions_create: %s\n" % e)
# Configure HTTP basic authorization: Basic
configuration = pirlpay.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = pirlpay.BillingApi(pirlpay.ApiClient(configuration))

try:
    api_response = api_instance.billing_subscriptions_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billing_subscriptions_list: %s\n" % e)
# Configure HTTP basic authorization: Basic
configuration = pirlpay.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = pirlpay.BillingApi(pirlpay.ApiClient(configuration))

try:
    api_response = api_instance.billing_subscriptions_transactions_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billing_subscriptions_transactions_list: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.pirlpay.com/api/v1/merchant

Class Method HTTP request Description
BillingApi billing_products_transactions_create POST /billing/products-transactions/
BillingApi billing_products_transactions_list GET /billing/products-transactions/
BillingApi billing_simple_payment_transactions_create POST /billing/simple-payment-transactions/
BillingApi billing_simple_payment_transactions_list GET /billing/simple-payment-transactions/
BillingApi billing_subscriptions_create POST /billing/subscriptions/
BillingApi billing_subscriptions_list GET /billing/subscriptions/
BillingApi billing_subscriptions_transactions_list GET /billing/subscriptions-transactions/
CatalogsApi catalogs_products_create POST /catalogs/products/
CatalogsApi catalogs_products_list GET /catalogs/products/
PaymentsApi payments_billing_plans_create POST /payments/billing-plans/
PaymentsApi payments_billing_plans_list GET /payments/billing-plans/

Documentation For Models

Documentation For Authorization

Basic

  • Type: HTTP basic authentication

Author

[email protected]

About

PirlPay python SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published