From e927298a40358ea73030504df16d8b99486c09a5 Mon Sep 17 00:00:00 2001 From: aydiv Date: Mon, 26 Aug 2013 14:21:28 +0530 Subject: [PATCH] Minor text changes in sample code comments --- sample/payments/CreatePayment.php | 4 ++-- sample/source/CreatePayment.html | 6 +++--- sample/source/DeleteCreditCard.html | 4 ++-- sample/vault/DeleteCreditCard.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sample/payments/CreatePayment.php b/sample/payments/CreatePayment.php index ccbfa76..5c17c7e 100644 --- a/sample/payments/CreatePayment.php +++ b/sample/payments/CreatePayment.php @@ -81,8 +81,8 @@ $payment->setIntent("sale") ->setTransactions(array($transaction)); // ### Create Payment -// Create a payment by posting to the APIService -// using a valid ApiContext (See bootstrap.php for more on `ApiContext`) +// Create a payment by calling the payment->create() method +// with a valid ApiContext (See bootstrap.php for more on `ApiContext`) // The return object contains the state. try { $payment->create($apiContext); diff --git a/sample/source/CreatePayment.html b/sample/source/CreatePayment.html index e3f1073..e1c57d2 100644 --- a/sample/source/CreatePayment.html +++ b/sample/source/CreatePayment.html @@ -60,8 +60,8 @@ the above types and intent set to sale 'sale'

< ->setPayer($payer) ->setTransactions(array($transaction));

Create Payment

-

Create a payment by posting to the APIService -using a valid ApiContext (See bootstrap.php for more on ApiContext) +

Create a payment by calling the payment->create() method +with a valid ApiContext (See bootstrap.php for more on ApiContext) The return object contains the state.

try { $payment->create($apiContext); } catch (PayPal\Exception\PPConnectionException $ex) { @@ -82,4 +82,4 @@ The return object contains the state.

<pre><?php var_dump($payment->toArray());?></pre> <a href='../index.html'>Back</a> </body> -</html>
\ No newline at end of file +</html> diff --git a/sample/source/DeleteCreditCard.html b/sample/source/DeleteCreditCard.html index c66e287..37de6d7 100644 --- a/sample/source/DeleteCreditCard.html +++ b/sample/source/DeleteCreditCard.html @@ -31,7 +31,7 @@ an 'id' that you can use to refer to it later. try {

Delete Card

-

deletes saved credit card +

Lookup and delete a saved credit card. (See bootstrap.php for more on ApiContext)

$creditCard = CreditCard::get($card->getId(), $apiContext); $creditCard->delete($apiContext); } catch (PayPal\Exception\PPConnectionException $ex) { @@ -47,4 +47,4 @@ an 'id' that you can use to refer to it later. <p> Credit Card deleted Successfully</p> <a href='../index.html'>Back</a> </body> -</html>
\ No newline at end of file +</html> diff --git a/sample/vault/DeleteCreditCard.php b/sample/vault/DeleteCreditCard.php index 0de5bba..3ba6d0d 100644 --- a/sample/vault/DeleteCreditCard.php +++ b/sample/vault/DeleteCreditCard.php @@ -36,7 +36,7 @@ try { try { // ### Delete Card - // deletes saved credit card + // Lookup and delete a saved credit card. // (See bootstrap.php for more on `ApiContext`) $creditCard = CreditCard::get($card->getId(), $apiContext);