Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
stymiee committed Jul 28, 2021
2 parents c4363bf + ef64549 commit 2719bd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Authnetjson/AuthnetApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public static function getJsonApiHandler(string $login, string $transaction_key,
$curl->setOpt(CURLOPT_RETURNTRANSFER, true);
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
$curl->setOpt(CURLOPT_HEADER, false);
$curl->setOpt(CURLOPT_TIMEOUT, 10);
$curl->setOpt(CURLOPT_CONNECTTIMEOUT, 10);
$curl->setHeader('Content-Type', 'text/json');

$object = new AuthnetJsonRequest($login, $transaction_key, $api_url);
Expand Down Expand Up @@ -169,6 +171,8 @@ public static function getWebhooksHandler(string $login, string $transaction_key
$curl->setOpt(CURLOPT_RETURNTRANSFER, true);
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
$curl->setOpt(CURLOPT_HEADER, false);
$curl->setOpt(CURLOPT_TIMEOUT, 10);
$curl->setOpt(CURLOPT_CONNECTTIMEOUT, 10);
$curl->setHeader('Content-Type', 'application/json');
$curl->setHeader('Authorization', sprintf('Basic %s', $base64credentials));

Expand Down

0 comments on commit 2719bd9

Please sign in to comment.