Metadata-Version: 2.1
Name: pfpi
Version: 1.0.0b1
Summary: Interface to do payments through  Paguelo Facil gateway
Home-page: https://github.com/franklintiel/pfig/wiki
Author: Franklin Sarmiento
Author-email: franklinitiel@gmail.com
License: MIT
Project-URL: Source, https://github.com/franklintiel/pfig
Project-URL: Documentation, https://github.com/franklintiel/pfig
Project-URL: Tracker, https://github.com/franklintiel/pfig/issues
Description: # PFPI (Paguelo Facil Payment Interface)
        Easy python module to do payments through Paguelo Facil payment gateway.
        
        ## Requirements
        - Python 2.7.x
        
        ## Installing
        1) Install the pfig module:
        ```shell
        $ pip install pfpi
        ```
        
        ## How to add a new credit card.
        ```python
        from pfpi.models import CreditCardService
        commerce_key = 'abcdef'
        production_mode = False # Change to True if you want use the production environment
        cc = CreditCardService(
            commerce=commerce_key, firstname='first name', lastname='last name', email='example@domain.com',
            description='payment description', cc_number='4111111111111111', ccv2='123', cc_expiration='2019-12',
            production_mode=production_mode)
        # Add new credit card
        result = cc.call()
        print result # return a JSON object with the result
        ```
        
        ## How to do Payment.
        ```python
        from pfpi.models import PaymentService
        commerce_key = 'abcdef'
        production_mode = False # Change to True if you want use the production environment
        p = PaymentService(
            commerce=commerce_key, firstname='first name', lastname='last name', email='example@domain.com',
            description='payment description', amount=25.00, cc_number='4111111111111111', ccv2='123',
            cc_expiration='2019-12', production_mode=production_mode)
        # Do Payment
        result = p.call()
        print result # return a JSON object with the result
        ```
        
        ## How to do Payment using  Token given from credit card
        ```python
        from pfpi.models import TokenPaymentService, CreditCardService
        commerce_key = 'abcdef'
        production_mode = False # Change to True if you want use the production environment
        cc = CreditCardService(
            commerce=commerce_key, firstname='first name', lastname='last name', email='example@domain.com',
            description='payment description', cc_number='4111111111111111', ccv2='123', cc_expiration='2019-12',
            production_mode=production_mode)
        # Add new credit card
        result = cc.call()
        token = result['token']
        p = TokenPaymentService(
            commerce=commerce_key, firstname='first name', lastname='last name', email='example@domain.com',
            description='payment description', amount=25.00, token=token, production_mode=production_mode)
        # Do Payment
        result = p.call()
        print result # return a JSON object with the result
        ```
        
        ## Uninstall pfig
        ```shell
        $ pip uninstall pfpi
        ```
        
        ## Additional Info
        You can see the follow [link](https://pfserver.net/plugins/api-transacciones/)
        
        ## Releases notes:
        
        - 1.0.0: Services added to add credit cards and do payments
        
Keywords: payments gateway paguelo-facil paguelo facil pfig
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Requires-Python: >=2.*
Description-Content-Type: text/markdown
