PHPackages                             csweb/bin-pagamentos - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. csweb/bin-pagamentos

ActiveLibrary

csweb/bin-pagamentos
====================

Integracao com a BIN pagamentos

0.5.1(5y ago)016MITPHPPHP &gt;=7.2

Since Sep 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ClubSystem-Softwares/Bin-Pagamentos)[ Packagist](https://packagist.org/packages/csweb/bin-pagamentos)[ RSS](/packages/csweb-bin-pagamentos/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (17)Used By (0)

CSWeb BIN Pagamentos
====================

[](#csweb-bin-pagamentos)

#### Testes

[](#testes)

Para a realização de alguns testes, é necessário o uso de certificados digitais. Para este package foram gerados alguns certificados auto-assinados, que se encontram em `tests/fixtures/certs`.

A senha do certificado `private_key.pem` é muito simples: *123456*

Estes certificados tem validade de 4 anos. Caso deseja gerar outros, faça

```
# generate private key and enter pass phrase
openssl genrsa -des3 -out private_key.pem 2048

# create certificate signing request, enter "*.example.com" as a "Common Name", leave "challenge password" blank
openssl req -new -sha256 -key private_key.pem -out server.csr

# generate self-signed certificate for 1 year
openssl req -x509 -sha256 -days 365 -key private_key.pem -in server.csr -out server.pem

# validate the certificate
openssl req -in server.csr -text -noout | grep -i "Signature.*SHA256" && echo "All is well" || echo "This certificate doesn't work in 2017! You must update OpenSSL to generate a widely-compatible certificate"
```

#### Criando uma nova venda

[](#criando-uma-nova-venda)

Para Criação de uma nova venda, faça

```
