Skip to content

Instantly share code, notes, and snippets.

@atanasantonov
Last active July 24, 2020 08:29
Show Gist options
  • Save atanasantonov/c5ec489f3984c7feba3f2259c2ffd7f8 to your computer and use it in GitHub Desktop.
Save atanasantonov/c5ec489f3984c7feba3f2259c2ffd7f8 to your computer and use it in GitHub Desktop.
Logging Examples
2020-07-24T11:20:33+03:00 DEBUG CurlClient request method: post
2020-07-24T11:20:33+03:00 DEBUG CurlClient request set opts: Array
(
[CURLOPT_POST] => 1
[CURLOPT_HTTPHEADER] => Array
(
[0] => Content-Type:application/json
)
[CURLOPT_POSTFIELDS] => {"merchantOrderID":"200","merchantOrderDesc":"Test order description","orderAmount":"100.00","orderCurrency":"USD","customerEmail":"testing@zotapay-php-sdk.com","customerFirstName":"John","customerLastName":"Lock","customerAddress":"The Swan, Jungle St. 108","customerCountryCode":"US","customerCity":"Los Angeles","customerState":"CA","customerZipCode":"90015","customerPhone":"+1 420-100-1000","customerIP":"134.201.250.130","customerBankCode":"","redirectUrl":"http:\/\/localhost\/redirect","callbackUrl":"http:\/\/localhost\/callback","checkoutUrl":"http:\/\/localhost\/checkout","customParam":"{\"TestCustomParam\":\"123\"}","language":"EN","signature":"7affe8ef06db0863a05c0c03e5d42f3d728cbc69fc8fd6026098e22864aa93e4"}
[CURLOPT_URL] => https://api.zotapay-sandbox.com/api/v1/deposit/request/503364
[CURLOPT_RETURNTRANSFER] => true
[CURLOPT_CONNECTTIMEOUT] => 30
[CURLOPT_SSLVERSION] => 6
[CURLOPT_USERAGENT] => Zotapay PHP SDK 0.1 (Linux 4.19.94-1.pvops.qubes.x86_64; PHP 7.3.19-1+0~20200612.60+debian9~1.gbp6c8fe1; cURL 7.52.1)
)
2020-07-24T11:20:33+03:00 DEBUG CurlClient execute request.
2020-07-24T11:20:34+03:00 DEBUG CurlClient request HTTP_CODE 409
2020-07-24T11:20:34+03:00 DEBUG CurlClient close handle.
2020-07-24T11:20:33+03:00 INFO merchantOrderID #200 Deposit prepare post data.
2020-07-24T11:20:33+03:00 INFO merchantOrderID #200 Deposit sign post data.
2020-07-24T11:20:33+03:00 INFO merchantOrderID #200 Deposit request.
2020-07-24T11:20:34+03:00 INFO merchantOrderID #200 Deposit response.
2020-07-24T11:20:34+03:00 INFO merchantOrderID #200 Deposit handle response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment