From 2ae7f06390066dd7fa5d0b93050b42a8e0f906f3 Mon Sep 17 00:00:00 2001
From: Pierre Grimaud
Date: Mon, 27 Apr 2020 20:52:33 +0200
Subject: [PATCH] Fix typos
---
lib/PayPal/Api/Capture.php | 4 ++--
lib/PayPal/Api/OpenIdUserinfo.php | 4 ++--
lib/PayPal/Api/Order.php | 4 ++--
lib/PayPal/Api/Payout.php | 2 +-
lib/PayPal/Api/RefundDetail.php | 4 ++--
lib/PayPal/Exception/PayPalConnectionException.php | 2 +-
sample/doc/lipp/GetUserInfo.html | 2 +-
sample/doc/payment-experience/UpdateWebProfile.html | 2 +-
sample/lipp/GetUserInfo.php | 2 +-
sample/payment-experience/CreateWebProfile.php | 2 +-
sample/payment-experience/UpdateWebProfile.php | 2 +-
11 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/lib/PayPal/Api/Capture.php b/lib/PayPal/Api/Capture.php
index 8358bfd7..1a644566 100644
--- a/lib/PayPal/Api/Capture.php
+++ b/lib/PayPal/Api/Capture.php
@@ -52,7 +52,7 @@ public function getId()
}
/**
- * The amount to capture. If the amount matches the orginally authorized amount, the state of the authorization changes to `captured`. If not, the state of the authorization changes to `partially_captured`.
+ * The amount to capture. If the amount matches the originally authorized amount, the state of the authorization changes to `captured`. If not, the state of the authorization changes to `partially_captured`.
*
* @param \PayPal\Api\Amount $amount
*
@@ -65,7 +65,7 @@ public function setAmount($amount)
}
/**
- * The amount to capture. If the amount matches the orginally authorized amount, the state of the authorization changes to `captured`. If not, the state of the authorization changes to `partially_captured`.
+ * The amount to capture. If the amount matches the originally authorized amount, the state of the authorization changes to `captured`. If not, the state of the authorization changes to `partially_captured`.
*
* @return \PayPal\Api\Amount
*/
diff --git a/lib/PayPal/Api/OpenIdUserinfo.php b/lib/PayPal/Api/OpenIdUserinfo.php
index b6d1f6ee..e48002ce 100644
--- a/lib/PayPal/Api/OpenIdUserinfo.php
+++ b/lib/PayPal/Api/OpenIdUserinfo.php
@@ -255,7 +255,7 @@ public function getGender()
}
/**
- * End-User's birthday, represented as an YYYY-MM-DD format. They year MAY be 0000, indicating it is omited. To represent only the year, YYYY format would be used.
+ * End-User's birthday, represented as an YYYY-MM-DD format. They year MAY be 0000, indicating it is omitted. To represent only the year, YYYY format would be used.
*
* @param string $birthday
* @return self
@@ -267,7 +267,7 @@ public function setBirthday($birthday)
}
/**
- * End-User's birthday, represented as an YYYY-MM-DD format. They year MAY be 0000, indicating it is omited. To represent only the year, YYYY format would be used.
+ * End-User's birthday, represented as an YYYY-MM-DD format. They year MAY be 0000, indicating it is omitted. To represent only the year, YYYY format would be used.
*
* @return string
*/
diff --git a/lib/PayPal/Api/Order.php b/lib/PayPal/Api/Order.php
index 13312cc0..5af169c0 100644
--- a/lib/PayPal/Api/Order.php
+++ b/lib/PayPal/Api/Order.php
@@ -198,7 +198,7 @@ public function getReasonCode()
}
/**
- * [DEPRECATED] Reason code for the transaction state being Pending. Obsolete. Retained for backward compatability. Use reason_code field above instead.
+ * [DEPRECATED] Reason code for the transaction state being Pending. Obsolete. Retained for backward compatibility. Use reason_code field above instead.
* Valid Values: ["payer_shipping_unconfirmed", "multi_currency", "risk_review", "regulatory_review", "verification_required", "order", "other"]
*
* @param string $pending_reason
@@ -212,7 +212,7 @@ public function setPendingReason($pending_reason)
}
/**
- * @deprecated [DEPRECATED] Reason code for the transaction state being Pending. Obsolete. Retained for backward compatability. Use reason_code field above instead.
+ * @deprecated [DEPRECATED] Reason code for the transaction state being Pending. Obsolete. Retained for backward compatibility. Use reason_code field above instead.
*
* @return string
*/
diff --git a/lib/PayPal/Api/Payout.php b/lib/PayPal/Api/Payout.php
index b97b5152..63636fac 100644
--- a/lib/PayPal/Api/Payout.php
+++ b/lib/PayPal/Api/Payout.php
@@ -97,7 +97,7 @@ public function removeItem($payoutItem)
}
/**
- * Create a payout batch resource by passing a sender_batch_header and an items array to the request URI. The sender_batch_header contains payout parameters that describe the handling of a batch resource while the items array conatins payout items.
+ * Create a payout batch resource by passing a sender_batch_header and an items array to the request URI. The sender_batch_header contains payout parameters that describe the handling of a batch resource while the items array contains payout items.
*
* @param array $params
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
diff --git a/lib/PayPal/Api/RefundDetail.php b/lib/PayPal/Api/RefundDetail.php
index 7674ec16..709f43f9 100644
--- a/lib/PayPal/Api/RefundDetail.php
+++ b/lib/PayPal/Api/RefundDetail.php
@@ -20,7 +20,7 @@
class RefundDetail extends PayPalModel
{
/**
- * The PayPal refund type. Indicates whether refund was paid in invoicing flow through PayPal or externally. In the case of mark-as-refunded API, the supported refund type is `EXTERNAL`. For backward compatability, the `PAYPAL` refund type is still supported.
+ * The PayPal refund type. Indicates whether refund was paid in invoicing flow through PayPal or externally. In the case of mark-as-refunded API, the supported refund type is `EXTERNAL`. For backward compatibility, the `PAYPAL` refund type is still supported.
* Valid Values: ["PAYPAL", "EXTERNAL"]
*
* @param string $type
@@ -34,7 +34,7 @@ public function setType($type)
}
/**
- * The PayPal refund type. Indicates whether refund was paid in invoicing flow through PayPal or externally. In the case of mark-as-refunded API, the supported refund type is `EXTERNAL`. For backward compatability, the `PAYPAL` refund type is still supported.
+ * The PayPal refund type. Indicates whether refund was paid in invoicing flow through PayPal or externally. In the case of mark-as-refunded API, the supported refund type is `EXTERNAL`. For backward compatibility, the `PAYPAL` refund type is still supported.
*
* @return string
*/
diff --git a/lib/PayPal/Exception/PayPalConnectionException.php b/lib/PayPal/Exception/PayPalConnectionException.php
index 72eeafe0..c22f2609 100644
--- a/lib/PayPal/Exception/PayPalConnectionException.php
+++ b/lib/PayPal/Exception/PayPalConnectionException.php
@@ -10,7 +10,7 @@
class PayPalConnectionException extends \Exception
{
/**
- * The url that was being connected to when the exception occured
+ * The url that was being connected to when the exception occurred
*
* @var string
*/
diff --git a/sample/doc/lipp/GetUserInfo.html b/sample/doc/lipp/GetUserInfo.html
index ff0ef884..a0408352 100644
--- a/sample/doc/lipp/GetUserInfo.html
+++ b/sample/doc/lipp/GetUserInfo.html
@@ -5,7 +5,7 @@
First, you need to obtain user's consent to retrieve the information you want.
This is explained in the example "ObtainUserConsent.php".
$refreshToken = 'W1JmxG-Cogm-4aSc5Vlen37XaQTj74aQcQiTtXax5UgY7M_AJ--kLX8xNVk8LtCpmueFfcYlRK6UgQLJ-XHsxpw6kZzPpKKccRQeC4z2ldTMfXdIWajZ6CHuebs';
try {
diff --git a/sample/doc/payment-experience/UpdateWebProfile.html b/sample/doc/payment-experience/UpdateWebProfile.html
index 877646d2..53f78989 100644
--- a/sample/doc/payment-experience/UpdateWebProfile.html
+++ b/sample/doc/payment-experience/UpdateWebProfile.html
@@ -4,7 +4,7 @@
create a new web profileId for sample, and return the web profile object.
$webProfile = require 'GetWebProfile.php';
$webProfile->getPresentation()->setLogoImage("http://www.google.com/favico.ico");
-try {
if ($webProfile->update($apiContext)) {
if ($webProfile->update($apiContext)) {
$updatedWebProfile = \PayPal\Api\WebProfile::get($webProfile->getId(), $apiContext);
}
} catch (\Exception $ex) {
ResultPrinter::printError("Updated Web Profile", "Web Profile", $webProfile->getId(), $webProfile, $ex);
diff --git a/sample/lipp/GetUserInfo.php b/sample/lipp/GetUserInfo.php
index 0ec4525c..d4e04c34 100644
--- a/sample/lipp/GetUserInfo.php
+++ b/sample/lipp/GetUserInfo.php
@@ -14,7 +14,7 @@
// This refresh token should be stored in a permanent storage for later use.
// Lastly, when you need to retrieve the user information, you need to generate the short lived access token
-// to retreive the information. The short lived access token can be retrieved using the example shown in
+// to retrieve the information. The short lived access token can be retrieved using the example shown in
// "GenerateAccessTokenFromRefreshToken.php", or as shown below
// You can retrieve the refresh token by executing ObtainUserConsent.php and store the refresh token
diff --git a/sample/payment-experience/CreateWebProfile.php b/sample/payment-experience/CreateWebProfile.php
index 0f7481ea..e4776db1 100644
--- a/sample/payment-experience/CreateWebProfile.php
+++ b/sample/payment-experience/CreateWebProfile.php
@@ -21,7 +21,7 @@
// Parameters for style and presentation.
$presentation = new \PayPal\Api\Presentation();
-// A URL to logo image. Allowed vaues: .gif, .jpg, or .png.
+// A URL to logo image. Allowed values: .gif, .jpg, or .png.
$presentation->setLogoImage("http://www.yeowza.com/favico.ico")
// A label that overrides the business name in the PayPal account on the PayPal pages.
->setBrandName("YeowZa! Paypal")
diff --git a/sample/payment-experience/UpdateWebProfile.php b/sample/payment-experience/UpdateWebProfile.php
index 0752ba41..5f86e491 100644
--- a/sample/payment-experience/UpdateWebProfile.php
+++ b/sample/payment-experience/UpdateWebProfile.php
@@ -16,7 +16,7 @@
try {
// Update the web profile to change the logo image.
if ($webProfile->update($apiContext)) {
- // If the update is successfull, we can now get the object, and verify the web profile
+ // If the update is successful, we can now get the object, and verify the web profile
// object
$updatedWebProfile = \PayPal\Api\WebProfile::get($webProfile->getId(), $apiContext);
}
Once you get the user's consent, the end result would be long lived refresh token. This refresh token should be stored in a permanent storage for later use.