Skip to content

Commit 11fa723

Browse files
committed
Fix_for_Class-SampleCode-Constants-not-found_issue
1 parent 678ae9c commit 11fa723

File tree

65 files changed

+227
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+227
-194
lines changed

CustomerProfiles/create-customer-payment-profile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
3-
3+
require_once 'constants/SampleCodeConstants.php';
44
use net\authorize\api\contract\v1 as AnetAPI;
55
use net\authorize\api\controller as AnetController;
66

@@ -11,8 +11,8 @@ function createCustomerPaymentProfile($existingcustomerprofileid, $phoneNumber)
1111
/* Create a merchantAuthenticationType object with authentication details
1212
retrieved from the constants file */
1313
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
14-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
15-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
14+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
15+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1616

1717
// Set the transaction's refId
1818
$refId = 'ref' . time();

CustomerProfiles/create-customer-profile-from-transaction.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
3+
require_once 'constants/SampleCodeConstants.php';
34
use net\authorize\api\contract\v1 as AnetAPI;
45
use net\authorize\api\controller as AnetController;
56

@@ -10,8 +11,8 @@ function createCustomerProfileFromTransaction($transId= "2249066517")
1011
/* Create a merchantAuthenticationType object with authentication details
1112
retrieved from the constants file */
1213
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
13-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
14-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
14+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
15+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1516

1617
// Set the transaction's refId
1718
$refId = 'ref' . time();

CustomerProfiles/create-customer-profile-with-accept-nonce.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
3-
3+
require_once 'constants/SampleCodeConstants.php';
44
use net\authorize\api\contract\v1 as AnetAPI;
55
use net\authorize\api\controller as AnetController;
66

@@ -11,8 +11,8 @@ function createCustomerProfileWithAcceptNonce($email)
1111
/* Create a merchantAuthenticationType object with authentication details
1212
retrieved from the constants file */
1313
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
14-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
15-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
14+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
15+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1616

1717
// Set the transaction's refId
1818
$refId = 'ref' . time();

CustomerProfiles/create-customer-profile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
3-
3+
require_once 'constants/SampleCodeConstants.php';
44
use net\authorize\api\contract\v1 as AnetAPI;
55
use net\authorize\api\controller as AnetController;
66

@@ -11,8 +11,8 @@ function createCustomerProfile($email)
1111
/* Create a merchantAuthenticationType object with authentication details
1212
retrieved from the constants file */
1313
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
14-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
15-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
14+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
15+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1616

1717
// Set the transaction's refId
1818
$refId = 'ref' . time();

CustomerProfiles/create-customer-shipping-address.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
3+
require_once 'constants/SampleCodeConstants.php';
34
use net\authorize\api\contract\v1 as AnetAPI;
45
use net\authorize\api\controller as AnetController;
56

@@ -11,8 +12,8 @@ function createCustomerShippingAddress($existingcustomerprofileid = "36152127",
1112
/* Create a merchantAuthenticationType object with authentication details
1213
retrieved from the constants file */
1314
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
14-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
15-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
15+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
16+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1617

1718
// Set the transaction's refId
1819
$refId = 'ref' . time();

CustomerProfiles/delete-customer-payment-profile.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
]<?php
22
require 'vendor/autoload.php';
3+
require_once 'constants/SampleCodeConstants.php';
34
use net\authorize\api\contract\v1 as AnetAPI;
45
use net\authorize\api\controller as AnetController;
56

@@ -11,8 +12,8 @@ function deleteCustomerPaymentProfile($customerProfileId= "36152127",
1112
/* Create a merchantAuthenticationType object with authentication details
1213
retrieved from the constants file */
1314
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
14-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
15-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
15+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
16+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1617

1718
// Set the transaction's refId
1819
$refId = 'ref' . time();

CustomerProfiles/delete-customer-profile.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
2-
require 'vendor/autoload.php';
2+
require 'vendor/autoload.php';
3+
require_once 'constants/SampleCodeConstants.php';
34
use net\authorize\api\contract\v1 as AnetAPI;
45
use net\authorize\api\controller as AnetController;
56

@@ -10,8 +11,8 @@ function deleteCustomerProfile($customerProfileId)
1011
/* Create a merchantAuthenticationType object with authentication details
1112
retrieved from the constants file */
1213
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
13-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
14-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
14+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
15+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1516

1617
// Set the transaction's refId
1718
$refId = 'ref' . time();

CustomerProfiles/delete-customer-shipping-address.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
3+
require_once 'constants/SampleCodeConstants.php';
34
use net\authorize\api\contract\v1 as AnetAPI;
45
use net\authorize\api\controller as AnetController;
56

@@ -10,8 +11,8 @@ function deleteCustomerShippingAddress($customerprofileid = "36731856", $custome
1011
/* Create a merchantAuthenticationType object with authentication details
1112
retrieved from the constants file */
1213
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
13-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
14-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
14+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
15+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1516

1617
// Set the transaction's refId
1718
$refId = 'ref' . time();

CustomerProfiles/get-accept-customer-profile-page.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
3+
require_once 'constants/SampleCodeConstants.php';
34
use net\authorize\api\contract\v1 as AnetAPI;
45
use net\authorize\api\controller as AnetController;
56

@@ -10,8 +11,8 @@ function getAcceptCustomerProfilePage($customerprofileid = "123212")
1011
/* Create a merchantAuthenticationType object with authentication details
1112
retrieved from the constants file */
1213
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
13-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
14-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
14+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
15+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1516

1617
// Set the transaction's refId
1718
$refId = 'ref' . time();

CustomerProfiles/get-customer-payment-profile-list.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
require 'vendor/autoload.php';
4-
4+
require_once 'constants/SampleCodeConstants.php';
55
use net\authorize\api\contract\v1 as AnetAPI;
66
use net\authorize\api\controller as AnetController;
77

@@ -12,8 +12,8 @@ function getCustomerPaymentProfileList()
1212
/* Create a merchantAuthenticationType object with authentication details
1313
retrieved from the constants file */
1414
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
15-
$merchantAuthentication->setName(\SampleCode\Constants::MERCHANT_LOGIN_ID);
16-
$merchantAuthentication->setTransactionKey(\SampleCode\Constants::MERCHANT_TRANSACTION_KEY);
15+
$merchantAuthentication->setName(\SampleCodeConstants::MERCHANT_LOGIN_ID);
16+
$merchantAuthentication->setTransactionKey(\SampleCodeConstants::MERCHANT_TRANSACTION_KEY);
1717

1818
// Set the transaction's refId
1919
$refId = 'ref' . time();

0 commit comments

Comments
 (0)