Skip to content

Commit 4f16283

Browse files
🐛fix: Method does not send parameter
1 parent fb60f2e commit 4f16283

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

examples/pix/automatic/solicRec/pixCreateRequestRecurrenceAutomatic.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
}
2121
$options = include $optionsFile;
2222

23-
$params = [
24-
"idRec" => "R00000000000000000000001",
25-
];
26-
2723
$body = [
2824
"idRec" => "R00000000000000000000001",
2925
"calendario" => [
@@ -40,7 +36,7 @@
4036

4137
try {
4238
$api = new EfiPay($options);
43-
$response = $api->pixCreateRequestRecurrenceAutomatic($params, $body);
39+
$response = $api->pixCreateRequestRecurrenceAutomatic($params = [], $body);
4440

4541
if (isset($options["responseHeaders"]) && $options["responseHeaders"]) {
4642
print_r("<pre>" . json_encode($response->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . "</pre>");

src/Efi/EfiPay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
* @method object pixUpdateRecurrenceAutomatic($params, $body)
124124
* @method object pixListRecurrenceAutomatic($params, $body)
125125
* @method object pixCreateRecurrenceAutomatic($params = [], $body)
126-
* @method object pixCreateRequestRecurrenceAutomatic($params, $body)
126+
* @method object pixCreateRequestRecurrenceAutomatic($params = [], $body)
127127
* @method object pixDetailRequestRecurrenceAutomatic($params)
128128
* @method object pixUpdateRequestRecurrenceAutomatic($params, $body)
129129
* @method object pixCreateAutomaticChargeTxid($params, $body)

0 commit comments

Comments
 (0)