koizoinno / worldpay
此包已被放弃且不再维护。作者建议使用 viralstyle/worldpay-xml 包代替。
关于此包最新版本(v1.0)没有提供许可证信息。
用于使用WorldPay存储配置文件令牌化端点的客户端。
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
使用WorldPay XML API的简单客户端。此库仅针对存储配置文件功能进行了测试,但应该适用于任何请求。
##示例
// 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();