Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Fix typos #1358

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/PayPal/Api/Capture.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/PayPal/Api/OpenIdUserinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/PayPal/Api/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/PayPal/Api/Payout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions lib/PayPal/Api/RefundDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/PayPal/Exception/PayPalConnectionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion sample/doc/lipp/GetUserInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
First, you need to obtain user's consent to retrieve the information you want.
This is explained in the example &quot;ObtainUserConsent.php&quot;.</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Once you get the user&#39;s consent, the end result would be long lived refresh token.
This refresh token should be stored in a permanent storage for later use.</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>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
&quot;GenerateAccessTokenFromRefreshToken.php&quot;, or as shown below</p></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>You can retrieve the refresh token by executing ObtainUserConsent.php and store the refresh token</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$refreshToken</span> = <span class="hljs-string">'W1JmxG-Cogm-4aSc5Vlen37XaQTj74aQcQiTtXax5UgY7M_AJ--kLX8xNVk8LtCpmueFfcYlRK6UgQLJ-XHsxpw6kZzPpKKccRQeC4z2ldTMfXdIWajZ6CHuebs'</span>;

<span class="hljs-keyword">try</span> {
Expand Down
2 changes: 1 addition & 1 deletion sample/doc/payment-experience/UpdateWebProfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
create a new web profileId for sample, and return the web profile object.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-comment">/** <span class="hljs-doctag">@var</span> \PayPal\Api\WebProfile $webProfile */</span>
<span class="hljs-variable">$webProfile</span> = <span class="hljs-keyword">require</span> <span class="hljs-string">'GetWebProfile.php'</span>;</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Updated the logo image of presentation object in a given web profile.</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$webProfile</span>-&gt;getPresentation()-&gt;setLogoImage(<span class="hljs-string">"http://www.google.com/favico.ico"</span>);

<span class="hljs-keyword">try</span> {</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Update the web profile to change the logo image.</p></div></div><div class="code"><div class="wrapper"> <span class="hljs-keyword">if</span> (<span class="hljs-variable">$webProfile</span>-&gt;update(<span class="hljs-variable">$apiContext</span>)) {</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>If the update is successfull, we can now get the object, and verify the web profile
<span class="hljs-keyword">try</span> {</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>Update the web profile to change the logo image.</p></div></div><div class="code"><div class="wrapper"> <span class="hljs-keyword">if</span> (<span class="hljs-variable">$webProfile</span>-&gt;update(<span class="hljs-variable">$apiContext</span>)) {</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>If the update is successful, we can now get the object, and verify the web profile
object</p></div></div><div class="code"><div class="wrapper"> <span class="hljs-variable">$updatedWebProfile</span> = \PayPal\Api\WebProfile::get(<span class="hljs-variable">$webProfile</span>-&gt;getId(), <span class="hljs-variable">$apiContext</span>);
}
} <span class="hljs-keyword">catch</span> (\<span class="hljs-keyword">Exception</span> <span class="hljs-variable">$ex</span>) {</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY</p></div></div><div class="code"><div class="wrapper"> ResultPrinter::printError(<span class="hljs-string">"Updated Web Profile"</span>, <span class="hljs-string">"Web Profile"</span>, <span class="hljs-variable">$webProfile</span>-&gt;getId(), <span class="hljs-variable">$webProfile</span>, <span class="hljs-variable">$ex</span>);
Expand Down
2 changes: 1 addition & 1 deletion sample/lipp/GetUserInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sample/payment-experience/CreateWebProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion sample/payment-experience/UpdateWebProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down