Skip to content

Commit 0627d2e

Browse files
committed
test-runner was running succssfully, update individual sample code to run without syntax errors
1 parent 44f10a2 commit 0627d2e

25 files changed

Lines changed: 43 additions & 36 deletions

CustomerProfiles/create-customer-payment-profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ function createCustomerPaymentProfile($existingcustomerprofileid, $phoneNumber){
6161
return $response;
6262
}
6363
if(!defined(DONT_RUN_SAMPLES))
64-
createCustomerPaymentProfile("35858366","000-000-0009");
64+
createCustomerPaymentProfile("36152127","000-000-0009");
6565
?>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function createCustomerProfileFromTransaction($transId="2238251168")
3030
}
3131
return $response;
3232
}
33+
//provide a transaction that has customer information
3334
if(!defined(DONT_RUN_SAMPLES))
34-
createCustomerProfileFromTransaction();
35+
createCustomerProfileFromTransaction("2249066517");
3536
?>

CustomerProfiles/create-customer-profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ function createCustomerProfile($email){
6969
return $response;
7070
}
7171
if(!defined(DONT_RUN_SAMPLES))
72-
createCustomerProfile();
72+
createCustomerProfile("test567@test.com");
7373
?>

CustomerProfiles/create-customer-shipping-address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use net\authorize\api\contract\v1 as AnetAPI;
44
use net\authorize\api\controller as AnetController;
55
define("AUTHORIZENET_LOG_FILE", "phplog");
6-
function createCustomerShippingAddress($existingcustomerprofileid = "35872074", $phoneNumber="000-000-0000")
6+
function createCustomerShippingAddress($existingcustomerprofileid = "36152127", $phoneNumber="000-000-0000")
77
{
88
// Common setup for API credentials
99
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();

CustomerProfiles/delete-customer-payment-profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use net\authorize\api\controller as AnetController;
55
define("AUTHORIZENET_LOG_FILE", "phplog");
66

7-
function deleteCustomerPaymentProfile($customerProfileId="38900575", $customerpaymentprofileid = "35366197")
7+
function deleteCustomerPaymentProfile($customerProfileId="36152127", $customerpaymentprofileid = "32689274")
88
{
99
// Common setup for API credentials
1010
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();

CustomerProfiles/delete-customer-profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ function deleteCustomerProfile($customerProfileId)
3434
}
3535

3636
if(!defined(DONT_RUN_SAMPLES))
37-
deleteCustomerProfile("2133432");
37+
deleteCustomerProfile("38958129");
3838
?>

CustomerProfiles/delete-customer-shipping-address.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use net\authorize\api\controller as AnetController;
55
define("AUTHORIZENET_LOG_FILE", "phplog");
66

7-
function deleteCustomerShippingAddress($customerprofileid = "35872074", $customeraddressid = "36931511")
7+
function deleteCustomerShippingAddress($customerprofileid = "36152127", $customeraddressid = "36976434")
88
{
99
// Common setup for API credentials
1010
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
@@ -22,7 +22,7 @@ function deleteCustomerShippingAddress($customerprofileid = "35872074", $custome
2222
$response = $controller->executeWithApiResponse( \net\authorize\api\constants\ANetEnvironment::SANDBOX);
2323
if (($response != null) && ($response->getMessages()->getResultCode() == "Ok") )
2424
{
25-
echo "Delete Customer Shipping Address SUCCESS:" . "\n";
25+
echo "Delete Customer Shipping Address SUCCESS" . "\n";
2626
}
2727
else
2828
{

CustomerProfiles/get-customer-shipping-address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ function getCustomerShippingAddress($customerprofileid, $customeraddressid)
4646
return $response;
4747
}
4848
if(!defined(DONT_RUN_SAMPLES))
49-
getCustomerShippingAddress();
49+
getCustomerShippingAddress("36152127", "36976566");
5050
?>

CustomerProfiles/update-customer-shipping-address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ function updateCustomerShippingAddress($customerprofileid, $customeraddressid)
4646
return $response;
4747
}
4848
if(!defined(DONT_RUN_SAMPLES))
49-
updateCustomerShippingAddress();
49+
updateCustomerShippingAddress("36152127", "36976566");
5050
?>

CustomerProfiles/validate-customer-payment-profile.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ function validateCustomerPaymentProfile($customerProfileId="36731856", $customer
1616
$validationmode = "testMode";
1717

1818
$request = new AnetAPI\ValidateCustomerPaymentProfileRequest();
19+
1920
$request->setMerchantAuthentication($merchantAuthentication);
20-
$request->setCustomerProfileId($customerprofileid);
21-
$request->setCustomerPaymentProfileId($customerpaymentprofileid);
21+
$request->setCustomerProfileId($customerProfileId);
22+
$request->setCustomerPaymentProfileId($customerPaymentProfileId);
2223
$request->setValidationMode($validationmode);
2324

2425
$controller = new AnetController\ValidateCustomerPaymentProfileController($request);

0 commit comments

Comments
 (0)