forked from gisce/sermepa
zikzakmedia/python-sermepa
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Sermepa client ~~~~~~~~~~~~~~ A python client for sending payment orders to the Sermepa service. Requirements ------------ * Python 2.5, 2.6 or 2.7 Installation ------------ Through pip: pip install sermepa or easy_install: easy_install sermepa or download the source, un-tar/un-zip it, cd into sermepa, and: python setup.py install Quick Start ----------- from sermepa import Client SANDBOX = True SERMEPA_MERCHANT_URL = 'http://www.zikzakmedia.com' SERMEPA_MERCHANT_NAME = "Zikzakmedia SL" SERMEPA_MERCHANT_CODE = '000000000' SERMEPA_SECRET_KEY = '123456' SERMEPA_TERMINAL = 1 SERMEPA_CURRENCY = 978 SERMEPA_TRANS_TYPE = 0 values = { 'Ds_Merchant_Amount': 10.0, 'Ds_Merchant_Currency': 978, 'Ds_Merchant_Order': 'SO001', 'Ds_Merchant_ProductDescription': 'ZZSaas services', 'Ds_Merchant_Titular': SERMEPA_MERCHANT_NAME, 'Ds_Merchant_MerchantCode': SERMEPA_MERCHANT_CODE, 'Ds_Merchant_MerchantURL': SERMEPA_MERCHANT_URL, 'Ds_Merchant_UrlOK': 'http://www.zzsaas.com/sermepa/confirm', 'Ds_Merchant_UrlKO': 'http://www.zzsaas.com/sermepa/cancel', 'Ds_Merchant_MerchantName': SERMEPA_MERCHANT_NAME, 'Ds_Merchant_Terminal': SERMEPA_TERMINAL, 'Ds_Merchant_SumTotal': 10.0, 'Ds_Merchant_TransactionType': SERMEPA_TRANS_TYPE, } serpayment = Client(business_code=SERMEPA_MERCHANT_CODE, priv_key=SERMEPA_SECRET_KEY, sandbox=SANDBOX) sermepa_form = serpayment.get_pay_form_data(values)
About
Sermepa client
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%