{"id":25169681,"url":"https://github.com/sumup/sumup-ecom-php-sdk","last_synced_at":"2025-04-13T06:21:49.780Z","repository":{"id":34003118,"uuid":"153110396","full_name":"sumup/sumup-ecom-php-sdk","owner":"sumup","description":"PHP SDK for the SumUp API. ","archived":false,"fork":false,"pushed_at":"2025-04-10T10:41:21.000Z","size":70,"stargazers_count":47,"open_issues_count":19,"forks_count":23,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-13T05:00:07.382Z","etag":null,"topics":["php","sdk","sumup"],"latest_commit_sha":null,"homepage":"https://developer.sumup.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sumup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-15T12:39:07.000Z","updated_at":"2025-04-10T10:41:24.000Z","dependencies_parsed_at":"2024-06-18T18:14:32.443Z","dependency_job_id":"6e49fe95-5b7b-4420-b533-980fed333ec8","html_url":"https://github.com/sumup/sumup-ecom-php-sdk","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":"0.19999999999999996","last_synced_commit":"37719156316316f839b7c1ad6d34f458a121de97"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-ecom-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-ecom-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-ecom-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Fsumup-ecom-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumup","download_url":"https://codeload.github.com/sumup/sumup-ecom-php-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665756,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","sdk","sumup"],"created_at":"2025-02-09T08:36:13.563Z","updated_at":"2025-04-13T06:21:49.754Z","avatar_url":"https://github.com/sumup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# SumUp Ecommerce PHP SDK\n\n[![Stars](https://img.shields.io/github/stars/sumup/sumup-ecom-php-sdk?style=social)](https://github.com/sumup/sumup-go/)\n[![Latest Stable Version](https://poser.pugx.org/sumup/sumup-ecom-php-sdk/v/stable.svg)](https://packagist.org/packages/sumup/sumup-ecom-php-sdk)\n[![Total Downloads](https://poser.pugx.org/sumup/sumup-ecom-php-sdk/downloads.svg)](https://packagist.org/packages/sumup/sumup-ecom-php-sdk)\n[![License](https://img.shields.io/github/license/sumup/sumup-go)](./LICENSE)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.1%20adopted-ff69b4.svg)](https://github.com/sumup/sumup-go/tree/main/CODE_OF_CONDUCT.md)\n\n\u003c/div\u003e\n\n## Overview\n\nThis repository contains the open source PHP SDK that allows you to integrate quickly with the SumUp's [API](https://developer.sumup.com/rest-api) endpoints.\n\n## Installation\n\nThe SumUp eCom PHP SDK can be installed with [Composer](https://getcomposer.org/). Run the following command:\n\n```\ncomposer require sumup/sumup-ecom-php-sdk\n```\n\n## Basic usage\n\n```php\ntry {\n    $sumup = new \\SumUp\\SumUp([\n        'app_id'     =\u003e 'YOUR-CLIENT-ID',\n        'app_secret' =\u003e 'YOUR-CLIENT-SECRET',\n        'code'       =\u003e 'YOUR-AUTHORIZATION-CODE'\n    ]);\n    $checkoutService = $sumup-\u003egetCheckoutService();\n    $checkoutResponse = $checkoutService-\u003ecreate($amount, $currency, $checkoutRef, $payToEmail);\n    $checkoutId = $checkoutResponse-\u003egetBody()-\u003eid;\n//  pass the $chekoutId to the front-end to be processed\n} catch (\\SumUp\\Exceptions\\SumUpAuthenticationException $e) {\n    echo 'Authentication error: ' . $e-\u003egetMessage();\n} catch (\\SumUp\\Exceptions\\SumUpResponseException $e) {\n    echo 'Response error: ' . $e-\u003egetMessage();\n} catch(\\SumUp\\Exceptions\\SumUpSDKException $e) {\n    echo 'SumUp SDK error: ' . $e-\u003egetMessage();\n}\n```\n\n## API Reference\n\nFor a full list of classes, see the [API reference page](https://github.com/sumup/sumup-ecom-php-sdk/tree/master/docs).\n\n## FAQ\n\n* [How to authorize?](https://github.com/sumup/sumup-ecom-php-sdk/blob/master/docs/HowToAuthorize.md)\n* [How to handle exceptions?](https://github.com/sumup/sumup-ecom-php-sdk/blob/master/docs/ExceptionsHandling.md)\n* [How to use my own HTTP client?](https://github.com/sumup/sumup-ecom-php-sdk/blob/master/docs/HowToOverrideHttpClient.md)\n\n## Roadmap\n\n| Version | Status | PHP Version |\n|--- |--- |--- |\n| 1.x | Latest | \\\u003e= 5.6 |\n\n## License\n\nFor information about the license see the [license](https://github.com/sumup/sumup-ecom-php-sdk/blob/master/LICENSE.md) file.\n\n## Contact us\n\nIf you have found a bug or you lack some functionality please [open an issue](https://github.com/sumup/sumup-ecom-php-sdk/issues/new). If you have other issues when integrating with SumUp's API you can send an email to [integration@sumup.com](mailto:integration@sumup.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumup%2Fsumup-ecom-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumup%2Fsumup-ecom-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumup%2Fsumup-ecom-php-sdk/lists"}