Skip to content

Commit 053edaf

Browse files
committed
PHPAY-64: doc(asaas-subscription): adding create a new subscription example on readme
1 parent 6cee9cd commit 053edaf

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,29 @@ $phpay->undoConfirmReceipt($chargeId);
112112

113113
```
114114

115+
### Assinaturas
116+
117+
```php
118+
/**
119+
* @var Subscription $phpay
120+
*/
121+
$phpay = PHPay::gateway(new AsaasGateway(TOKEN_ASAAS_SANDBOX))->subscription();
122+
123+
/**
124+
* create a new subscription
125+
*/
126+
$phpay->setCustomer($customer)->create([
127+
'billingType' => 'BOLETO',
128+
'value' => 100,
129+
'nextDueDate' => '2025-04-09',
130+
]);
131+
```
132+
115133
## 📝 Roadmap
116134

117135
- Definições de Arquitetura ✅
118136
- Domínios ✅
119-
- Documentação 🕑
137+
- Documentação ✍️
120138
- Site 🕛
121139
- Gateways ✍️
122140

@@ -125,6 +143,7 @@ $phpay->undoConfirmReceipt($chargeId);
125143
- Cobranças ✅
126144
- Clientes ✅
127145
- Webhook ✅
146+
- Assinaturas ✍️
128147
- Pix 🕥
129148

130149
- Efí.
@@ -133,6 +152,7 @@ $phpay->undoConfirmReceipt($chargeId);
133152
- Cobranças ✅
134153
- Clientes 🕥
135154
- Webhook 🕥
155+
- Assinaturas ✍️
136156
- Pix 🕥
137157

138158
- Lançamento v1.0.0 🚀

0 commit comments

Comments
 (0)