This repository has been archived by the owner on Jan 3, 2020. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.5
->^3.0.0
Release Notes
thephpleague/omnipay-common
v3.0.2
Compare Source
v3.0.1
Compare Source
v3.0.0
Compare Source
v3.0.0 - 2018-05-14
Omnipay 3.0 focuses on separation of the HTTP Client, to be independent of Guzzle.
This release brings compatibility with the latest Symfony 3+4 and Laravel 5.
The breaking changes for applications using Omnipay are kept to a minimum.
Upgrading applications from Omnipay 2.x to 3.x
Breaking changes
redirect()
method no callsexit()
after sending the content. This is up to the developer now.omnipay/omnipay
,but otherwise you need to required your own implementation (see PHP HTTP Clients)
Added
setAmountInteger(integer $value)
to set the amount in the base units of the currency.setMoney(Money $money)
the Amount and Currency are set.Upgrading Gateways from 2.x to 3.x
The primary difference is the HTTP Client. We are now using HTTPlug (http://httplug.io/) but rely on our own interface.
Breaking changes
Omnipay\Common\Http\ClientInterface
$client->get('..')
/$client->post('..')
etc are removed, you can call$client->request('GET', '')
.$request->send()
, requests are sent directly.$client->createRequest(..)
you can create+send the request directly with$client->request(..)
.json_encode()
and set the correct Content-Type.$response->getBody()->getContents()
to get the body as string.$response->json()
and$response->xml()
are gone, but you can implement the logic directly.omnipay/common
, butomnipay/omnipay
will add Guzzle.Gateways should not rely on Guzzle or other clients directly.
$body
should be a string (eg.http_build_query($data)
orjson_encode($data)
instead of just$data
).$headers
parameters should be anarray
(notnull
, but can be empty)Examples:
Testing changes
PHPUnit is upgraded to PHPUnit 6. Common issues:
setExpectedException()
is removed@doesNotPerformAssertions
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.