The \SumUp\Services\Customers is responsible for managing customers and assigning payment instruments to them (if you have that functionality enabled).
$customerService = new \SumUp\Services\Customers(
\SumUp\HttpClients\SumUpHttpClientInterface $client,
\SumUp\Authentication\AccessToken $accessToken
);
Creates a new customer.
public function create(
string $customerId,
array $customerDetails = [],
array $customerAddress = []
): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
Updates information about a customer.
public function update(
string $customerId,
array $customerDetails = [],
array $customerAddress = []
): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
Returns information about a particular customer.
public function get(string $customerId): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
Returns payment instruments assigned to that particular customer.
public function getPaymentInstruments(string $customerId): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
Deactivates a payment instrument for a customer.
public function deletePaymentInstruments(
string $customerId,
string $cardToken
): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
How can I help you explore Laravel packages today?