This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:phpsdk:start [2018/07/06 19:26] michaelheumann [Download] |
en:phpsdk:start [2026/07/25 00:09] (current) michaelheumann [Download] |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== Download ===== | ===== Download ===== | ||
| - | {{:phpsdk: | + | [[https:// |
| + | ==== Github ==== | ||
| + | GiroCheckout SDK is now also available and installable via composer, packagist and Github. | ||
| + | [[https:// | ||
| + | [[https:// | ||
| ===== Important note regarding notify and redirect ===== | ===== Important note regarding notify and redirect ===== | ||
| GiroCheckout uses two parallel channels for the communication between the GiroCheckout server and the Shop: The notification (or notify for short) and the redirect. | GiroCheckout uses two parallel channels for the communication between the GiroCheckout server and the Shop: The notification (or notify for short) and the redirect. | ||
| Line 18: | Line 22: | ||
| The folder " | The folder " | ||
| - | {{:phpsdk:sdk2.0_folders1.png? | + | {{:phpsdk:ordner.jpg? |
| ===== List of all request types (Request & Notify) ===== | ===== List of all request types (Request & Notify) ===== | ||
| Line 165: | Line 169: | ||
| You may do this in one of three ways: | You may do this in one of three ways: | ||
| - | 1) In your PHP Code: | + | 1) In your PHP code: \\ |
| + | Via the environment: | ||
| <code php> | <code php> | ||
| - | apache_setenv( " | + | apache_setenv( " |
| + | </ | ||
| + | Or directly through the setServer() method: | ||
| + | <code php> | ||
| + | try { | ||
| + | $request = new GiroCheckout_SDK_Request( GiroCheckout_SDK_TransactionType_helper:: | ||
| + | $request-> | ||
| + | |||
| + | $request-> | ||
| + | |||
| + | $request-> | ||
| + | -> | ||
| + | -> | ||
| + | } | ||
| + | catch(Exception $e) { | ||
| + | // Handle exception | ||
| + | } | ||
| </ | </ | ||
| 2) On the Linux command line (e.g. for executing the SDK examples without a browser): | 2) On the Linux command line (e.g. for executing the SDK examples without a browser): | ||
| Line 177: | Line 198: | ||
| SetEnv GIROCHECKOUT_SERVER " | SetEnv GIROCHECKOUT_SERVER " | ||
| </ | </ | ||
| + | |||
| + | Version 2.5.12/ | ||
| + | |||
| + | ^ Value ^ Description ^ | ||
| + | | gc1-dev | GiroCheckout 1 development environment | | ||
| + | | gc1-prod | GiroCheckout 1 production | | ||
| + | | gc2-preprod | GiroCheckout 2 pre-production (available soon) | | ||
| + | | gc2-prod | GiroCheckout 2 production (available soon) | | ||
| + | |||
| + | Note that you need credentials for the environments you are going to use. | ||
| + | |||
| + | Please note that in gc1 the URLs containg the string " | ||
| ===== Operation via a proxy server ===== | ===== Operation via a proxy server ===== | ||
| Line 216: | Line 249: | ||
| ==== Set certificate file ==== | ==== Set certificate file ==== | ||
| - | Under an Windows server environment it might happen that cURL is not able to check the SSL certrificate. Then it will be necessary to give cURL an specific certificate file. The SDK provides the possibility of setting a local certificate file. Therefor the following code is needed **bevore the $request-> | + | Under a Windows server environment it might happen that cURL is not able to check the SSL certrificate. Then it will be necessary to give cURL an specific certificate file. The SDK provides the possibility of setting a local certificate file. Therefor the following code is needed **bevore the $request-> |
| <code php> | <code php> | ||