Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,20 @@ VERSIONING

This wrapper is using the api v2.1 launched in June 2014. If you wish to use the old api v2.0 please use the wrapper in branch v2: https://github.com/paymill/paymill-php/tree/v2.

How to test
-----------
How to test cards and errors
----------------------------

There are different credit card numbers, frontend and backend error codes, which can be used for testing. For more information, please read our testing reference. https://www.paymill.com/en-gb/documentation-3/reference/testing/

How to run unit and integration tests
-------------------------------------
Just run:

```
ant test
```


Getting started with PAYMILL
----------------------------

Expand Down Expand Up @@ -140,6 +149,13 @@ Changelog

- bugfix: [#92](https://github.com/paymill/paymill-php/pull/92) remove typecheck for http response code

#### 4.0.0

- Added shipping and billing address
- Added shopping cart (items)
- Added PayPal functionality
- Possible [BC break in ResponseHandler.php](https://github.com/paymill/paymill-php/pull/102#discussion_r32232137)

Documentation
-------------

Expand Down
4 changes: 3 additions & 1 deletion lib/Paymill/API/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,15 @@ public function requestApi($action = '', $params = array(), $method = 'POST')
return $responseBody;
}

return array(
$result = array(
'header' => array(
'status' => $responseInfo['http_code'],
'reason' => null,
),
'body' => $responseBody
);

return $result;
}

/**
Expand Down
Loading