Download the PHP package alexcode/sumup-php without Composer
On this page you can find all versions of the php package alexcode/sumup-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sumup-php
SumUp PHP SDK
This repo is archived, please use the official Sumup PHP SDK.
Requirements
PHP 5.6 and later.
Composer
You can install the bindings via Composer. Run the following command:
Basic Usage
Setup your credentials
OAuth
As a merchant, you will need to Authorize your app to make requests on your behalf with OAuth
Authorization Code Grant
Get the authorize Url to redirect your merchant to.
SumUp doc Authorization Code Grant
Upon accepting the dialog, the merchant browser will hit your redirect URI with the code in the GET parameter (ex: http://MY_OAUTH_REDIRECT/?code=246d97b0b730c61f5929drfb3a444948fd54c058d0416019)
Therefore, you can create an Access Token to act on behalf of your Merchant.
Get Access Token
Refresh Access Token
SumUp doc Refresh Tokens
Checkout
Create the checkout server-side
SumUp doc Create checkout API
Complete the checkout client-side
Use the URL to complete the payment in the client browser. Therefore, no PCI data is ever hitting your server.
SumUp doc Complete checkout API
Note that a checkout can be completed in a browser only from a domain that is present in your OAuth setup as an authorized javascript origin(s).
List of currently implemented SumUp API
Checkouts API
- [x] Create checkout
- [x] Complete checkout
- [ ] Create customer
- [ ] Get payment instruments
- [ ] Create payment instrument
- [ ] Disable payment instrument
Transactions API
- [ ] Transaction history
- [ ] Transaction details
- [x] Refund transaction
- [ ] Receipt data
Accounts API
- [ ] Get account
- [ ] Get personal profile
- [ ] Create personal profile
- [ ] Get merchant profile
- [ ] Create merchant profile
- [ ] Get DBA
- [ ] Edit DBA
- [ ] Get Bank Accounts
- [ ] Create Bank Accounts
- [ ] Payouts Get settings
- [ ] Payouts Edit settings
Accounts API Employee
- [ ] Create Employee
- [ ] Get Employees
- [ ] Change employee credentials
Accounts API Shelf
- [ ] Get shelves
- [ ] Create shelf
- [ ] Create shelf
- [ ] Edit shelf
- [ ] Delete shelf
Accounts API Product
- [ ] Get products
- [ ] Create product
- [ ] Get product
- [ ] Edit product
- [ ] Delete product
- [ ] Get product prices
- [ ] Create product price
- [ ] Get product price
- [ ] Edit product price
- [ ] Delete product price
Accounts API Application Settings
- [ ] Application Get settings
- [ ] Application Edit settings
Credits
This Library is loosely inspired from Stripe PHP