forked from LiveCarta/PayPal-PHP-SDK
Enabled Billing Plans and Agreements APIs
- Added API Classes, Samples, and Tests - Updated Functional Tests - Updated Documentation with new SDK Name - Updated Few Samples to use newer nicer result page
This commit is contained in:
@@ -43,6 +43,9 @@ $webProfile->setName("YeowZa! T-Shirt Shop" . uniqid())
|
||||
// Parameters for style and presentation.
|
||||
->setPresentation($presentation);
|
||||
|
||||
// For Sample Purposes Only.
|
||||
$request = clone $webProfile;
|
||||
|
||||
try {
|
||||
// Use this call to create a profile.
|
||||
$createProfileResponse = $webProfile->create($apiContext);
|
||||
@@ -55,6 +58,6 @@ try {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
print_result("Created Web Profile", "Web Profile", $createProfileResponse->getId(), $createProfileResponse);
|
||||
ResultPrinter::printResult("Created Web Profile", "Web Profile", $createProfileResponse->getId(), $request, $createProfileResponse);
|
||||
|
||||
return $createProfileResponse;
|
||||
|
||||
@@ -27,4 +27,4 @@ try {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
print_result("Deleted Web Profile", "Web Profile", $createProfileResponse->getId());
|
||||
ResultPrinter::printResult("Deleted Web Profile", "Web Profile", $createProfileResponse->getId(), null, null);
|
||||
|
||||
@@ -23,6 +23,6 @@ try {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
print_result("Get Web Profile", "Web Profile", $webProfile->getId(), $webProfile);
|
||||
ResultPrinter::printResult("Get Web Profile", "Web Profile", $webProfile->getId(), null, $webProfile);
|
||||
|
||||
return $webProfile;
|
||||
|
||||
@@ -23,6 +23,6 @@ foreach ($list as $object) {
|
||||
$result .= $object->toJSON(128) . PHP_EOL;
|
||||
}
|
||||
|
||||
print_result("Get List of All Web Profiles", "Web Profiles", null, $result);
|
||||
ResultPrinter::printResult("Get List of All Web Profiles", "Web Profiles", null, null, $result);
|
||||
|
||||
return $list;
|
||||
|
||||
@@ -45,4 +45,4 @@ try {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
print_result("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $webProfile);
|
||||
ResultPrinter::printResult("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $patches, $webProfile);
|
||||
|
||||
@@ -29,4 +29,4 @@ try {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
print_result("Updated Web Profile", "Web Profile", $updatedWebProfile->getId(), $updatedWebProfile);
|
||||
ResultPrinter::printResult("Updated Web Profile", "Web Profile", $updatedWebProfile->getId(), $webProfile, $updatedWebProfile);
|
||||
|
||||
Reference in New Issue
Block a user