File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use PHPay \Gateways \ Asaas \AsaasGateway ;
3
+ use PHPay \Asaas \AsaasGateway ;
4
4
use PHPay \PHPay ;
5
5
6
6
require_once __DIR__ . '/../../vendor/autoload.php ' ;
44
44
* @return array
45
45
* @see available fields in https://docs.asaas.com/reference/criar-novo-webhook
46
46
*/
47
- $ webhook = $ phpay
47
+ $ phpay
48
48
->webhook ($ webhook )
49
49
->create ();
50
50
64
64
*/
65
65
$ phpay
66
66
->webhook ()
67
- ->find ($ webhook [ ' id ' ] );
67
+ ->find ($ webhookId );
68
68
69
69
/**
70
70
* update a webhook
71
71
*
72
72
* @return array
73
73
* @see available fields in https://docs.asaas.com/reference/atualizar-webhook-existente
74
74
*/
75
- $ webhookUpdated = $ phpay
75
+ $ phpay
76
76
->webhook ()
77
- ->update ($ webhook [ ' id ' ] , [
78
- 'name ' => 'Webhook de Teste Atualizado ' ,
77
+ ->update ($ webhookId , [
78
+ 'name ' => 'Update webhook with PHPay is awesome ' ,
79
79
'url ' => 'https://sixtec.com.br/webhook/atualizado ' ,
80
80
]);
81
81
84
84
*
85
85
* @return bool
86
86
*/
87
- $ webhookDeleted = $ phpay
87
+ $ phpay
88
88
->webhook ()
89
- ->destroy ($ webhook [ ' id ' ] );
89
+ ->destroy ($ webhookId );
You can’t perform that action at this time.
0 commit comments