Ps. Bin-test https://postb.in/
Code: Select all
$headers = array(
'checkout-account' => $checkout_merchant,
'checkout-algorithm' => 'sha256',
'checkout-method' => 'POST',
'checkout-nonce' => '564635208570151',
'checkout-timestamp' => date('Y-m-d\TH:i:s.Z\Z', time()),
'content-type' => 'application/json; charset=utf-8',
'checkout-transaction-id' => $this->session->data['order_id']
);
$client = new \GuzzleHttp\Client(array('headers' => $headers));
$response = $client->post('https://postb.in/1568135374147-4690802653785',array());
Code: Select all
Headers
x-real-ip: 192.130.146.163
host: postb.in
connection: close
content-length: 0
user-agent: Guzzle/5.3.1 curl/7.65.3 PHP/5.6.40
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Other shortcomig: Not all files in the guzzlehttp library are included in the Opencart vendor. You still need to install guzzlehttp library with Composer.
Problem: Many use a windows computer. In it, installing the Guzzlehttp library using Composer is almost impossible.
Solution: Develop on a Linux server.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
It is possible, if install Ubuntu. But current Opencart folder system/storage/vendor/guzzlehttp is useless.
You could use VirtualBox.
Why not use the version from here?
https://www.opencart.com/index.php?route=cms/download
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Is need you A2 Hosting? What there?paulfeakins wrote: ↑Wed Sep 11, 2019 10:25 pmWhy not use the version from here?
https://www.opencart.com/index.php?route=cms/download
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Current Opencart Guzzlehttp 5.3.1 is not work. You can see in up from postb.in, it create own "sweeping" header. Guzzle remove required headers from array $headers. Many currents extensions required Guzzlehttp 6.paulfeakins wrote: ↑Wed Sep 11, 2019 11:11 pmSo it's still not clear exactly why you are trying to modify headers?
You need to be clearer.
"is not work" is not a good description.
What *exactly* are you trying to do and what *exactly* is it doing instead?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
That postb.in should output:paulfeakins wrote: ↑Wed Sep 11, 2019 11:36 pmYou need to be clearer.
"is not work" is not a good description.
What *exactly* are you trying to do and what *exactly* is it doing instead?
Code: Select all
Headers
x-real-ip: 192.130.146.163
host: postb.in
connection: close
content-length:388
user-agent: Guzzle/5.3.1 curl/7.65.3 PHP/5.6.40
checkout-account: 346754
checkout-algorithm: sha256
checkout-method:POST
checkout-nonce: 564635208570151
checkout-timestamp: 2019-09-11T12:06:45.799Z
content-type: application/json; charset=utf-8
signature: pla pla pla
Ps. This payment gateway is inessential. Main important is it, that system/storage/vendor/guzzlehttp is useless and dud.
https://packagist.org/packages/guzzlehttp/guzzle
Users browsing this forum: adycobra2003, OSWorX, paulfeakins and 414 guests