==============
Esse projeto tem como objetivo implementar as chamadas ao webservice do iPagare, permitindo uma integração totalmente transparente atravéz desse gateway de pagamento.
# Antes de começar
Antes de começar a utilizar os webservices é importante ler esse post:
https://ipagare.zendesk.com/entries/20318508-1-antes-de-comecar
Para começar a usar os serviços você precisa ter seu ``id de estabelecimento`` e seu ``codigo de segurança``. Essas informações são obtidas no painel de usuário do iPagare
# Serviços
Atualmente os serviços abaixo são suportados. Sinta-se a vontade para implementar os outros e contribuir com esse projeto.
## [Consultar opções de pagamento](https://ipagare.zendesk.com/entries/20339157-servico-consultar-opcoes-de-pagamento)
Esse serviço é usado para recuperar a formas de pagamento configuradas na sua conta do iPagare
```python
from ipagare.gateway import IPagareGateway
gateway = IPagareGateway(ID_ESTABELECIMENTO, CODIGO_SEGURANCA, sandbox=True)
print gateway.payment_options(total=10000)
[{
'formas': [u'\xe0 vista', u'2x sem juros'],
'instituicao': 'American Express',
'convenio': 'WebPOS Webservice',
'nome': 'American Express'
}]
```
## [Processar pagamentos pela Integração Webservice](https://ipagare.zendesk.com/entries/20338847-servico-processar-pagamentos-pela-integracao-webservice)
```python
from ipagare.gateway import IPagareGateway
gateway = IPagareGateway(ID_ESTABELECIMENTO, CODIGO_SEGURANCA, sandbox=True)
request = gateway.process_payment(total=12000,
payment_option='28',
payment_form_code='A02',
card_number='4444333322221111',
card_expires_month='10',
card_expires_year='2015',
card_security_code='123',
request_code='1234')
assert request.code == '1234'
```
# Instalando
```bash
pip install python-ipagare
```
Metadata
Release files for python-ipagare 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-ipagare-0.0.7.tar.gz | 9.0 kB | Without provenance | Details for python-ipagare-0.0.7.tar.gz |
Release files / python-ipagare-0.0.7.tar.gz
| Download URL | python-ipagare-0.0.7.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ccacdfb4d20b98f57bd894fd1b9863553cee5f8c600115337b7695d884a73b2
|
|
BLAKE2b-256 checksum How to use checksums |
bcfe4217bb1cf92455171186bcc26febd303444d0a662d8bbc91820de1a55adc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-ipagare 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.