koizoinno / worldpay
This package is abandoned and no longer maintained.
The author suggests using the viralstyle/worldpay-xml package instead.
There is no license information available for the latest version (v1.0) of this package.
Client for using WorldPay stored profile tokenization endpoints.
v1.0
2015-09-02 21:24 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: 4.*
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2022-02-01 12:46:20 UTC
README
Simple client for using the WorldPay XML API. This library has only been tested with the Stored Profile functions, but should work for any request.
##Example
// Create a client. $client = new WorldpayClient(); // Pass settings via setupApi method. $client->setupApi($acctId, $acctSubId, $merchantPin, $encryptionKey); // Create a request and pass request type (creditcard, ach, etc) and pass in the client. $request = new WorldpayRequest('creditcard', $client); // Add fields as required by your request. You do not need to include any of the fields passed via setupApi() or the request type. You must include all required fields as indicated in the documentation. $request->service = WorldPayClient::SERVICE_PROFILE_CREDIT; $request->amount = 500; // Add other fields as needed. // Execute the request. $response = $request->execute();