digistorm / omnipay-westpac-payway-rest
Westpac PayWay REST API driver for the Omnipay payment processing library
Installs: 3 406
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: ^8.1
- omnipay/common: ^3
- symfony/http-client: ^7.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- http-interop/http-factory-guzzle: ^1.2
- omnipay/tests: ^4
- phpstan/phpstan: ^1.12
- rector/rector: ^1.2
- spaze/phpstan-disallowed-calls: ^3.5
This package is auto-updated.
Last update: 2025-02-24 05:09:41 UTC
README
Note: When instantiating the gateway, it needs to be provided with an Omnipay HTTP Client that is injected with a Guzzle client configured to implement Curl TLS 1.2.
e.g.
use Omnipay\WestpacPaywayRest\Gateway; use Omnipay\Common\Http\Client as OmnipayHttpClient; use GuzzleHttp\Client as GuzzleHttpClient; $curlConfig = [ CURLOPT_SSLVERSION => CURL_SSLVERSION_TLSv1_2, ]; $guzzleClient = new GuzzleHttpClient(['curl' => $curlConfig]); $omnipayClient = new OmnipayHttpClient($guzzleClient); $gateway = new Gateway($omnipayClient);