CreditCardService
in package
Table of Contents
- $whmcs_api : IWhmcsHttpClient
- __construct() : mixed
- fetchAllByAccountId() : array<string|int, mixed>
- Retrieves all credit cards of the account
Properties
$whmcs_api
protected
IWhmcsHttpClient
$whmcs_api
Methods
__construct()
public
__construct(IWhmcsHttpClient $whmcs_api) : mixed
Parameters
- $whmcs_api : IWhmcsHttpClient
Return values
mixed —fetchAllByAccountId()
Retrieves all credit cards of the account
public
fetchAllByAccountId(int $accountId) : array<string|int, mixed>
Parameters
- $accountId : int
-
the whmcs client id
Tags
Return values
array<string|int, mixed> —an array of CreditCard model