-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed readme and configuration entries
- Loading branch information
1 parent
f7a5125
commit 2e7667d
Showing
4 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ $init = new \PagOnline\Init\IgfsCgInit(); | |
$init->serverURL = "https://payment-gateway-example.com/IGFS_CG_SERVICES/services"; | ||
$init->tid = "MY-TID-CODE"; | ||
$init->kSig = '1234567890987654321'; | ||
$init->timeout = 15000; | ||
$init->shopID = 'my-transaction-id'; | ||
$init->shopUserRef = "[email protected]"; | ||
$init->trType = "AUTH"; | ||
|
@@ -31,6 +30,13 @@ $init->notifyURL = "http://my-domain.tld/verify.php"; | |
$init->errorURL = "http://my-domain.tld/error.php"; | ||
$init->addInfo1 = 'myFirstAddintionalInfo'; | ||
|
||
// if you need to edit http client parameters... | ||
$init->setRequestTimeout(10); // Seconds | ||
$init->setConnectTimeout(5); // Seconds | ||
$init->setHttpProxy('tcp://some.proxy'); // Proxy server for requests | ||
$init->setHttpAuthUser('username'); // HTTP Basic Auth username | ||
$init->setHttpAuthPass('password'); // HTTP Basic Auth password | ||
|
||
if (!$init->execute()) { | ||
// Something went wrong | ||
} else { | ||
|
@@ -48,7 +54,8 @@ to copy `pagonline.php` config file | |
|
||
Set the following environment variables in your `.env` file: | ||
- `PAGONLINE_SERVER_URL` payment gateway server url (_default: null_) | ||
- `PAGONLINE_TIMEOUT` maximum timeout in milliseconds for completing a request (_default: 15000_) | ||
- `PAGONLINE_REQUEST_TIMEOUT` maximum timeout in seconds for completing a request (_default: 15_) | ||
- `PAGONLINE_CONNECT_TIMEOUT` maximum timeout in seconds for connecting to the server (_default: 5_) | ||
- `PAGONLINE_TERMINAL_ID` identifier provided by the payment gateway (_default: null_) | ||
- `PAGONLINE_SIGNATURE_KEY` signature key provided by the payment gateway (_default: null_) | ||
- `PAGONLINE_CURRENCY_CODE` currency code (_default: EUR_) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters