Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sumup Ecom Php Sdk Laravel Package

sumup/sumup-ecom-php-sdk

View on GitHub
Deep Wiki
Context7

Customers service for the SumUp Ecommerce SDK for PHP

\SumUp\Services\Customers

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
);

Instance Methods

create()

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.

update()

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.

get()

Returns information about a particular customer.

public function get(string $customerId): \SumUp\HttpClients\Response

Returns a \SumUp\HttpClients\Response or throws an exception.

getPaymentInstruments()

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.

deletePaymentInstruments()

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel