Download the PHP package michelmelo/payments-gateway without Composer

On this page you can find all versions of the php package michelmelo/payments-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package payments-gateway

Payment Gateway SDK

O Payment Gateway SDK é uma biblioteca PHP que permite integrar diversos métodos de pagamento, como MBWay, Multibanco, Cartão de Crédito, XPay, Blik e Pay By Link, em aplicações PHP e frameworks populares como WordPress, PrestaShop, Laravel e Magento.

Requisitos

Instalação

Você pode instalar o SDK via Composer:

Configuração

Certifique-se de carregar o autoloader do Composer no seu projeto:

Uso

Inicializando o SDK

Para começar, crie uma instância da classe PaymentGateway:

Processando Pagamentos

O método processPayment permite processar pagamentos com base no método de pagamento desejado. Aqui está um exemplo para cada método:

MBWay

Exibindo o Widget ou Formulário de Pagamento

Após processar o pagamento, você pode usar a classe PaymentWidget para exibir o widget ou o formulário de pagamento.

Exibindo o Widget

Use o método widget para gerar o script do widget de pagamento:

Saída esperada:

Exibindo o Formulário

Use o método form para gerar o formulário de pagamento:

Saída esperada:

Multibanco

Cartão de Crédito

XPay

Blik

Pay By Link

Tratamento de Exceções

Se um método de pagamento não for suportado ou ocorrer um erro, uma exceção PaymentException será lançada. Certifique-se de tratar as exceções adequadamente:

Testes

Para executar os testes, use o seguinte comando:

Contribuição

Sinta-se à vontade para contribuir com melhorias para este SDK. Faça um fork do repositório, crie uma branch para sua funcionalidade ou correção e envie um pull request.

Licença

Este projeto está licenciado sob a licença MIT. Consulte o arquivo LICENSE para mais detalhes.


All versions of payments-gateway with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version ^7.0
symfony/var-dumper Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package michelmelo/payments-gateway contains the following files

Loading the files please wait ....