Download the PHP package tmazza/wirecard-subscriptions-sdk without Composer
On this page you can find all versions of the php package tmazza/wirecard-subscriptions-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tmazza/wirecard-subscriptions-sdk
More information about tmazza/wirecard-subscriptions-sdk
Files in tmazza/wirecard-subscriptions-sdk
Package wirecard-subscriptions-sdk
Short Description Software Development Kit to simplify the use of Wirecard Subscriptions API.
License
Informations about the package wirecard-subscriptions-sdk
Sobre
SDK PHP para facilitar o uso da API de Assinaturas da Wirecard.
Uso
Exemplo
Instalação
composer require tmazza/wirecard-assinaturas-sdk-php
Credenciais
Defina as variáveis de ambiente WIRECARD_SUBSCRIPTIONS_ENV
, WIRECARD_SUBSCRIPTIONS_TOKEN
e WIRECARD_SUBSCRIPTIONS_KEY
, para especificar, respectivamente o ambiente o token e a chave da integração da Wirecard. O ambiente default utilizado será o de sandbox.
Alternativamente o ambiente e as credenciais podem ser definidas na criação da classe da API, passando os parâmetros conforme: new WirecardApi('sandbox', 'token', 'key')
. Esses parâmetros terão precedência sob as variáveis de ambiente.
API
Todos os recursos possuem os métodos get()
, all()
, create()
e update()
além de métodos específicos configurando cada um dos parâmetros disponíveis na API.
Tratamento de erros
Recursos
ASSINATURAS
-
Planos
- Criar plano
- Listar Planos
- Consultar Plano
- Ativar Plano
- Desativar Plano
- Alterar Plano
-
Assinantes
- Criar Assinante
- Listar Assinantes
- Consultar Assinante
- Alterar Assinante
- Atualizar Cartão do Assinante
- Assinaturas
- Criar Assinaturas
- Listar Todas Assinaturas
- Consultar Detalhes de Uma Assinatura
PAGAMENTOS
-
Faturas
- Listar Todas as Faturas de Uma Assinatura
- Consultar Detalhes de Uma Fatura
-
Pagamentos
- Listar Todos os Pagamentos de Uma Fatura
- Consultar Detalhes de Um Pagamento da Assinatura
-
Cupons
- Criar Cupom
- Associar um Cupom a Assinatura Existente
- Associar um Cupom a uma Nova Assinatura
- Consultar Cupom
- Listar Todos os Cupons
- Ativar e Inativar Cupons
- delete Excluir Cupom de uma Assinatura
- Retentativas
- Retentativa de pagamento de uma fatura
- Gerar um novo boleto para uma fatura
- Criar Regras de Retentativas Automáticas
NOTIFICAÇÕES
- Preferências de notificação
- Criar Preferência de Notificação (webhook)
Planos
Criar plano
Listar Planos
Consultar Plano
Ativar Plano
Desativar Plano
Alterar Plano
Assinantes
Criar Assinante
Listar Assinantes
Consultar Assinante
Alterar Assinante
Atualizar Cartão do Assinante
Assinaturas
Criar Assinaturas
Parâmetro enableNewUser()
disponível caso customer seja informado junto com a criação da assinatura.