Skip to content

Commit 8c16bf7

Browse files
committed
Updated samples so they can run from samples directory (to work in PHPStorm IDE)
1 parent c562bc8 commit 8c16bf7

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

samples/AuthCapture.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// capture request.
44

55
// Using Composer-generated autoload file.
6-
require 'vendor/autoload.php';
6+
require __DIR__ . '/../vendor/autoload.php';
77
// Or, uncomment the line below if you're not using Composer autoloader.
8-
// require_once('lib/CybsSoapClient.php');
8+
// require_once(__DIR__ . '/../lib/CybsSoapClient.php');
99

1010

1111
// Before using this example, you can use your own reference code for the transaction.

samples/Sale.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
// authorization with a capture in one request.
44

55
// Using Composer-generated autoload file.
6-
require 'vendor/autoload.php';
7-
6+
require __DIR__ . '/../vendor/autoload.php';
87
// Or, uncomment the line below if you're not using Composer autoloader.
9-
// require_once('lib/CybsSoapClient.php');
8+
// require_once(__DIR__ . '/../lib/CybsSoapClient.php');
109

1110

1211
// Before using this example, you can use your own reference code for the transaction.

0 commit comments

Comments
 (0)