Weave Code
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

Exceptions handling

Exceptions handling is an important part of our code. We pay attention to this detail and we recommend to wrap every statement from this SDK with a try {} catch() {} clause.

You should at least handle \SumUp\Exceptions\SumUpSDKException exception but if you want you can handle all sorts of exceptions.

try {
    $sumup = new \SumUp\SumUp($config);
} catch (\SumUp\Exceptions\SumUpAuthenticationException $e) {
    echo $e->getCode() . ': ' . $e->getMessage();
} catch (\SumUp\Exceptions\SumUpResponseException $e) {
    echo $e->getCode() . ': ' . $e->getMessage();
} catch (\SumUp\Exceptions\SumUpSDKException $e) {
    echo $e->getCode() . ': ' . $e->getMessage();
}

More information about the exceptions can be found in the reference.

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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle