Skip to content

Commit

Permalink
Updated @method annotation to include authenticateTestRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
stymiee committed Feb 3, 2023
1 parent 594495e commit 898fd92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Authnetjson/AuthnetJsonRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* @link https://github.com/stymiee/authnetjson
* @see https://developer.authorize.net/api/reference/
*
* @method AuthnetJsonResponse authenticateTestRequest()
* @method AuthnetJsonResponse createTransactionRequest(array $array)
* @method AuthnetJsonResponse sendCustomerTransactionReceiptRequest(array $array)
* @method AuthnetJsonResponse ARBCancelSubscriptionRequest(array $array)
Expand Down Expand Up @@ -120,7 +121,7 @@ public function __construct(string $login, string $transactionKey, string $api_u
}

/**
* Outputs the account credentials, endpoint URL, and request JSON in a human readable format
* Outputs the account credentials, endpoint URL, and request JSON in a human-readable format
*
* @return string HTML table containing debugging information
*/
Expand Down Expand Up @@ -165,7 +166,7 @@ public function __set(string $name, $value)
* @throws AuthnetInvalidJsonException
* @throws AuthnetCurlException
*/
public function __call(string $api_call, array $args)
public function __call(string $api_call, array $args = [])
{
$authentication = [
'merchantAuthentication' => [
Expand Down
1 change: 1 addition & 0 deletions src/Authnetjson/AuthnetJsonResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @property string $validationDirectResponseList
* @property object $transactionResponse
*
* @method null authenticateTestRequest(array $array)
* @method null createTransactionRequest(array $array)
* @method null sendCustomerTransactionReceiptRequest(array $array)
* @method null ARBCancelSubscriptionRequest(array $array)
Expand Down

0 comments on commit 898fd92

Please sign in to comment.