Changing test case and samples to use newer camelcase setters

This commit is contained in:
aydiv
2013-08-21 21:37:42 +05:30
parent 6dc604666b
commit 14b9a13f8a
27 changed files with 183 additions and 183 deletions

View File

@@ -12,13 +12,13 @@ use PayPal\Api\CreditCard;
// The cardId can be obtained from a previous save credit
// card operation. Use $card->getId()
$cardId = "CARD-5BT058015C739554AKE2GCEI";
$cardId = "CARD-5AR29593TC404090HKIKN77Q";
/// ### Retrieve card
// (See bootstrap.php for more on `ApiContext`)
try {
$card = CreditCard::get($cardId, $apiContext);
} catch (\PPConnectionException $ex) {
} catch (PayPal\Exception\PPConnectionException $ex) {
echo "Exception: " . $ex->getMessage() . PHP_EOL;
var_dump($ex->getData());
exit(1);
@@ -30,4 +30,4 @@ try {
<pre><?php var_dump($card);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>
</html>