forked from LiveCarta/PayPal-PHP-SDK
Renaming Namespaces and Organizing Classes
- Updated OpenId classes to be in API namespace - Updated PP Naming Convention to PayPal Naming Convention - FormatConverter Class got its own namespace - Handlers are grouped in Handler namespace - Samples and Tests Updated Accordingly
This commit is contained in:
@@ -51,7 +51,7 @@ $request = clone $webProfile;
|
||||
try {
|
||||
// Use this call to create a profile.
|
||||
$createProfileResponse = $webProfile->create($apiContext);
|
||||
} catch (\PayPal\Exception\PPConnectionException $ex) {
|
||||
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
|
||||
ResultPrinter::printError("Created Web Profile", "Web Profile", null, $request, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ $webProfile->setId($createProfileResponse->getId());
|
||||
try {
|
||||
// Execute the delete method
|
||||
$webProfile->delete($apiContext);
|
||||
} catch (\PayPal\Exception\PPConnectionException $ex) {
|
||||
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
|
||||
ResultPrinter::printError("Deleted Web Profile", "Web Profile", $createProfileResponse->getId(), null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ $createProfileResponse = require 'CreateWebProfile.php';
|
||||
try {
|
||||
// If your request is successful, the API returns a web_profile object response that contains the profile details.
|
||||
$webProfile = \PayPal\Api\WebProfile::get($createProfileResponse->getId(), $apiContext);
|
||||
} catch (\PayPal\Exception\PPConnectionException $ex) {
|
||||
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
|
||||
ResultPrinter::printError("Get Web Profile", "Web Profile", $webProfile->getId(), null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ $apiContext = require __DIR__ . '/../bootstrap.php';
|
||||
// (See bootstrap.php for more on `ApiContext`)
|
||||
try {
|
||||
$list = \PayPal\Api\WebProfile::get_list($apiContext);
|
||||
} catch (\PayPal\Exception\PPConnectionException $ex) {
|
||||
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
|
||||
ResultPrinter::printError("Get List of All Web Profiles", "Web Profiles", null, null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user