Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4 from sqlr/master
Browse files Browse the repository at this point in the history
Code cleanup, enable default payment method for payments, add iDEAL issuers
  • Loading branch information
Roel van Duijnhoven authored Mar 5, 2018
2 parents 244c398 + 476d08f commit 09bc40a
Show file tree
Hide file tree
Showing 99 changed files with 506 additions and 522 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
composer.lock
vendor/*
Tests/config.php
tests/config.php
.idea/
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
# DocData Order API Component [![License](https://poser.pugx.org/cleentfaar/docdata-orderapi/license.svg)](https://packagist.org/packages/cleentfaar/docdata-orderapi)
# DocData Order API Component

**WARNING: By no means feature complete or thoroughly tested**

The Order API component for the DocData library.

## Documentation

- [Installation](Resources/doc/installation.md)
- [Usage examples](Resources/doc/usage.md)
- [Installation](doc/installation.md)
- [Usage examples](doc/usage.md)

## About

This component lets you create orders and track their status through DocData's Order API.

The current supported API version is `1.2`.
The current supported API version is `1.2` with adjustments to make arbitrary backwards-compatible features of version `1.3` available.

## History

* February 2018 - Repository forked once again due to its abandoned state, added some `1.3` features.
* June 2017 - Improved logging. And removed automated test runner using Travis.
* November 2016 - this project was forked due to issues to repo not being managed
* August 2014 - new fork https://github.com/cleentfaar/docdata-orderapi created
* February 2013 - Initial work by Tijs Verkoyen https://github.com/tijsverkoyen/Docdata-Payments

## License

This package is dual-licensed; mostly MIT (my own code) and some BSD (the original library, see the complete license [here](LICENSE)).
This package is dual-licensed; mostly MIT and some BSD.

## Thanks

Expand Down
3 changes: 0 additions & 3 deletions Resources/doc/usage.md

This file was deleted.

10 changes: 0 additions & 10 deletions Type/CancelError.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/CancelRequest.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/CancelSuccess.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/CaptureError.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/CaptureSuccess.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/CreateError.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/MaestroPaymentInfo.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/MasterCardPaymentInfo.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/MisterCashPaymentInfo.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/RefundError.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/RefundSuccess.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/StartError.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/StartSuccess.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/StatusError.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/StatusRequest.php

This file was deleted.

10 changes: 0 additions & 10 deletions Type/VisaPaymentInfo.php

This file was deleted.

71 changes: 49 additions & 22 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,52 @@
{
"name": "roelvanduijnhoven/docdata",
"type": "library",
"description": "PHP wrapper around DocData's API. Forked out of repo by @cleentfaar",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Roel van Duijnhoven",
"email": "roel@jouwweb.nl"
"name": "roelvanduijnhoven/docdata",
"description": "PHP wrapper around DocData's API.",
"type": "library",
"keywords": [
"docdata",
"payments"
],
"license": "BSD-3-Clause",
"authors": [
{
"name": "Roel van Duijnhoven",
"email": "roel@jouwweb.nl",
"role": "Developer, Maintainer"
},
{
"name": "Willem Mouwen",
"email": "willem@jouwweb.nl",
"role": "Developer, Maintainer"
},
{
"name": "Cas Leentfaar",
"email": "info@casleentfaar.com",
"role": "Original Developer"
},
{
"name": "Tijs Verkoyen",
"email": "php-docdatapayments@verkoyen.eu",
"role": "Original developer"
}
],
"require": {
"php": ">=7.1.0",
"psr/log": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.1"
},
"replace": {
"cleentfaar/docdata-orderapi": "~1.0"
},
"autoload": {
"psr-4": {
"JouwWeb\\DocData\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"JouwWeb\\DocData\\Tests\\": "tests/"
}
}
],
"require": {
"php": ">=5.4.0",
"psr/log": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.1"
},
"target-dir": "CL/DocData/Component/OrderApi",
"autoload": {
"psr-0": {
"CL\\DocData\\Component\\OrderApi": ""
}
}
}
60 changes: 60 additions & 0 deletions config/ideal-issuers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php

/**
* List of available issuers (banks) for iDeal at DocData. The key of each entry in the array is
* the corresponding bank's BIC, or Bank Identifier Code.
*/

return [

// Netherlands
'ABNANL2A' => [
'name' => 'ABN Amro',
'country' => 'NL',
],
'ASNBNL21' => [
'name' => 'ASN',
'country' => 'NL',
],
'BUNQNL2A' => [
'name' => 'Bunq',
'country' => 'NL',
],
'INGBNL2A' => [
'name' => 'ING',
'country' => 'NL',
],
'KNABNL2H' => [
'name' => 'Knab',
'country' => 'NL',
],
'RABONL2U' => [
'name' => 'Rabobank',
'country' => 'NL',
],
'RBRBNL21' => [
'name' => 'RegioBank',
'country' => 'NL',
],
'SNSBNL2A' => [
'name' => 'SNS Bank',
'country' => 'NL',
],
'TRIONL2U' => [
'name' => 'Triodos Bank',
'country' => 'NL',
],
'FVLBNL22' => [
'name' => 'van Lanschot',
'country' => 'NL',
],

// Belgium
'KREDBEBB' => [
'name' => 'KBC',
'country' => 'BE',
],

// Others

];
13 changes: 2 additions & 11 deletions Resources/doc/installation.md → doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,9 @@ Add the following to your ``composer.json`` (see http://getcomposer.org/)

"require" : {
// ...
"cleentfaar/docdata-orderapi": "1.0.*@dev"
"roelvanduijnhoven/docdata": "^1.2.2"
}


### Method b) Using submodules

Run the following commands to bring in the needed libraries as submodules.

```bash
git submodule add https://github.com/cleentfaar/docdata-orderapi.git vendor/bundles/CL/DocData/Component/OrderApi
```

## Step 2) Register the namespaces

If you installed the bundle by composer, use the created autoload.php (jump to step 3).
Expand All @@ -33,7 +24,7 @@ Add the following two namespace entries to the `registerNamespaces` call in your
// app/autoload.php
$loader->registerNamespaces(array(
// ...
'CL\DocData\Component\OrderApi' => __DIR__.'/../vendor/cleentfaar/docdata-orderapi',
'JouwWeb\DocData' => __DIR__.'/../vendor/roelvanduijnhoven/docdata',
// ...
));
```
Expand Down
3 changes: 3 additions & 0 deletions doc/usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Usage

Coming soon! ... maybe.
Loading

0 comments on commit 09bc40a

Please sign in to comment.