Updating sample comments

This commit is contained in:
aydiv
2013-08-26 12:21:29 +05:30
parent b1f1887cec
commit 05a4aef55e
18 changed files with 180 additions and 121 deletions

View File

@@ -36,7 +36,7 @@ function getBaseUrl() {
}
/**
* Creates a new payment authorization
* Creates a new mock 'payment authorization'
*
* @param PayPal\Api\ApiContext apiContext
* @return PayPal\Api\Authorization
@@ -74,12 +74,12 @@ function createAuthorization($apiContext) {
$transaction = new Transaction();
$transaction->setAmount($amount)
->setDescription("This is the payment description.");
->setDescription("Payment description.");
$payment = new Payment();
// Setting intent to authorize creates a payment
// authorization. Setting it to sale makes an actual payment
// authorization. Setting it to sale creates actual payment
$payment->setIntent("authorize")
->setPayer($payer)
->setTransactions(array($transaction));