From 815e3f5c3498592b58d37bd7d5ab079ae5075640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Lucas?= Date: Fri, 20 Dec 2024 21:19:45 -0300 Subject: [PATCH] PHPAY-40: doc: update readme --- .github/README.md | 33 +++++++++++++++------------------ examples/asaas/charges.php | 2 -- examples/efi/charges.php | 6 +----- 3 files changed, 16 insertions(+), 25 deletions(-) diff --git a/.github/README.md b/.github/README.md index b5608d3..c3cfee6 100644 --- a/.github/README.md +++ b/.github/README.md @@ -36,18 +36,11 @@ $phpay = new PHPay(new AsaasGateway(TOKEN_ASAAS_SANDBOX)); ### Efí -O Efí exige um token do tipo Bearer que é gerado com o -envio do client_id e client_secret, para isso, basta utilizar o método do phpay de autorização. - ```php /** * @var EfiGateway $phpay */ -$phpay = new PHPay(new EfiGateway()); - -$token = $phpay - ->authorization(CLIENT_ID, CLIENT_SECRET) - ->getToken(); +$phpay = new PHPay(new EfiGateway(CLIENT_ID, CLIENT_SECRET)); ``` ## Gerando uma Cobrança @@ -61,17 +54,21 @@ $phpay ## 📝 Roadmap -- Integração com Asaas. +- Definições de Arquitetura ✅ +- Domínios ✅ +- Documentação 🕑 +- Site 🕛 +- Asaas. - Cobranças ✅ - Clientes ✅ - Webhook ✅ - Pix 🕥 -- Integração com Efí. +- Efí. - Autorização ✅ - - Cobranças 🕥 + - Cobranças ✅ - Clientes 🕥 - Webhook 🕥 - Pix 🕥 @@ -83,18 +80,18 @@ $phpay Contribuições são muito bem-vindas! Para começar: -- Faça um fork do projeto. -- Crie uma branch para sua feature (git checkout -b feature/nova-feature). -- Faça commit das alterações (git commit -m 'Adicionei nova feature'). -- Envie sua branch (git push origin feature/nova-feature). -- Abra um pull request para análise. +- 🍴 Faça um fork do projeto. +- 🎋 Crie uma branch para sua feature (git checkout -b feature/nova-feature). +- 🗒️ Faça commit das alterações (git commit -m 'Adicionei nova feature'). +- ✏️ Envie sua branch (git push origin feature/nova-feature). +- ✈️ Abra um pull request para análise. ## 📄 Licença -Este projeto está licenciado sob a MIT License. Consulte o arquivo LICENSE para mais detalhes. +Este projeto está licenciado sob a MIT License. Consulte o arquivo [LICENSE](./LICENSE) para mais detalhes. 🤝 Contato -💻 GitHub: mariolucasdev +💻 GitHub: [Mário Lucas](https://github.com/mariolucasdev) 📧 Email: mariolucasdev@gmail.com 🎉 Comece a usar o PHPay e simplifique suas integrações com gateways de pagamento! diff --git a/examples/asaas/charges.php b/examples/asaas/charges.php index 8e31b98..07d5f9e 100644 --- a/examples/asaas/charges.php +++ b/examples/asaas/charges.php @@ -20,8 +20,6 @@ ]; /** - * initialize phpay - * * @var AsaasGateway $phpay */ $phpay = new PHPay(new AsaasGateway(TOKEN_ASAAS_SANDBOX)); diff --git a/examples/efi/charges.php b/examples/efi/charges.php index 4a25deb..3024df6 100644 --- a/examples/efi/charges.php +++ b/examples/efi/charges.php @@ -20,15 +20,11 @@ ]; /** - * initialize phpay - * * @var EfiGateway $phpay */ $phpay = new PHPay(new EfiGateway(CLIENT_ID, CLIENT_SECRET)); -$charge = $phpay +$phpay ->charge($charge) ->setCustomer($customer) ->create(); - -print_r($charge);