Skip to content

Commit

Permalink
update samples to use without composer
Browse files Browse the repository at this point in the history
  • Loading branch information
hlu2 committed Nov 12, 2019
1 parent 970ab02 commit b4dc3f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion samples/interceptorexample.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
require "vendor/autoload.php";
//Replace the line with require "vendor/autoload.php" if you are using the Samples from outside of _Samples folder
//require "vendor/autoload.php";
include('../src/config.php');

use QuickBooksOnline\Payments\PaymentClient;
use QuickBooksOnline\Payments\Operations\ChargeOperations;
Expand Down
5 changes: 3 additions & 2 deletions samples/oauthExample.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
require "vendor/autoload.php";

//Replace the line with require "vendor/autoload.php" if you are using the Samples from outside of _Samples folder
//require "vendor/autoload.php";
include('../config.php');
use QuickBooksOnline\Payments\OAuth\OAuth2Authenticator;
use QuickBooksOnline\Payments\PaymentClient;

Expand Down
7 changes: 4 additions & 3 deletions samples/simplestart.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php
require "vendor/autoload.php";

//Replace the line with require "vendor/autoload.php" if you are using the Samples from outside of _Samples folder
//require "vendor/autoload.php";
include('../src/config.php');
use QuickBooksOnline\Payments\PaymentClient;
use QuickBooksOnline\Payments\Operations\ChargeOperations;


$client = new PaymentClient([
'access_token' => "The Access Token",
'access_token' => "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..mDJrjB3DU7H-aY0UXgj-FQ._GHonQ_YitarEemB6gwuK6D6LJHjuuNBvl2Vcp8wn1DK_4KcmU2pAcp6dcljWY66_mDwAEsO-UDBQaPt2m4UP9uG12Gm2080Sskk-l7z4WWAbGtjOhgnyULB3FKR5ZEaZN9U0rEMtG7ux9grNIJr4EmMtTVYsQa1PdNSfHOXLBj9ixqXdE9zDkqgVioNows3JILlaqMqr3vz3yFhWQYimDmSFD1lwfb_TcB5P9iLNCTOFtvi0_gSM1_hkgC7H4rNsuyiCzt1KN5DpPQ3Dcc76t6NLT7JlLivMHHyjFq_QqWve-mnNrDK1nxSpE5wPoQLLKfg_0UuZIky6Ba_BGsr5PXxEozGTzLNsXpw8qGrUzn4gl9xe2m31DtULfDlhNHevzMbqHrO6uLwNyI2Nd0BnVpES0V7o2kpwg4P_ulj3jValmHtyv-yjsfA0fpmU0KFHpCYnBnhqKiybbsicHzsY6QpjotMrqek36-G3ZvkVSdANKLUu_PsgvStV2VnL_7ARbFYrDqqkAKhUKHoPLG0b40MXzKFGJrZi0OQfWVT3Xe_E8beRdkL6tGOrVcxXIsetn_qQ-TdDmXCteErO1iR17gV_4MqgByF07TP1qfmpothSQUC0HmAryX2fcdPDBmOcTrDYX7LquNdTBIoPuVuCLvZJshC2sVhKnz5Z1HBhqDkkyrwWqRZnRThUSunYUyyK4IlaNvC2JZg-OrtVbncJA.Fs_60T_tIyXcHEc_c6G0Kg",
'environment' => "sandbox" // or 'environment' => "production"
]);

Expand Down

0 comments on commit b4dc3f4

Please sign in to comment.