Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 54e2a7d

Browse files
Nitpicking some typos
1 parent 5a389c3 commit 54e2a7d

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @fresha/capacitor-plugin-googlepay
22

3-
This Google Pay plugin provides interfaces that allow you to initiate an Google Pay payment sheet based on provided PaymentOptions. When transaction is authorized, PaymentData response is returned along with payment details and more importantly- a payment token that you should pass to your backend.
3+
This Google Pay plugin provides interfaces that allow you to initiate a Google Pay payment sheet based on provided PaymentOptions. When transaction is authorized, PaymentData response is returned along with payment details and more importantly- a payment token that you should pass to your backend.
44

55
The API is a subset of Google Pay for Web. Necessary typescript types has been extracted from [DefinitelyTyped/googlepay](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/googlepay).
66

@@ -50,7 +50,7 @@ initialize(paymentOptions: PaymentOptions) => Promise<void>
5050
```
5151

5252
Initiates a Google Pay client along with environment configuration.
53-
This function should be called once- before using the plugin.
53+
This function should be called once: before using the plugin.
5454

5555
| Param | Type | Description |
5656
| -------------------- | --------------------------------------------------------- | ------------------------------------------------------------ |
@@ -486,7 +486,7 @@ Options:
486486
reuse the credential across unrelated transactions.
487487

488488
- `CRYPTOGRAM_3DS`:
489-
Authenticate using the a 3-D Secure (3DS) cryptogram.
489+
Authenticate using the 3-D Secure (3DS) cryptogram.
490490

491491
Note: in addition to the 3DS cryptogram there will also be an
492492
associated PAN (personal account number), expiration month and year,
@@ -589,7 +589,7 @@ Options:
589589
- <a href="#address">Address</a>.name
590590
- <a href="#address">Address</a>.countryCode
591591
- <a href="#address">Address</a>.postalCode
592-
- <a href="#address">Address</a>.phoneNumberif <a href="#billingaddressparameters">BillingAddressParameters.phoneNumberRequired</a> is set to `true`.
592+
- <a href="#address">Address</a>.phoneNumber if <a href="#billingaddressparameters">BillingAddressParameters.phoneNumberRequired</a> is set to `true`.
593593

594594
Note: some countries do not use postal codes. The postal code field
595595
will be empty in those countries.

src/definitions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import type {
44
PaymentOptions,
55
PaymentDataRequest,
66
PaymentData,
7-
} from '../types/index';
7+
} from '../types';
88

99
export interface GooglePayPlugin {
1010
/**
1111
* Initiates a Google Pay client along with environment configuration.
12-
* This function should be called once- before using the plugin.
12+
* This function should be called once: before using the plugin.
1313
* @param paymentOptions - An object containing environment type that should be used.
1414
* @returns Promise<void> after the client is initialized.
1515
*/

src/web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {
77
PaymentData,
88
PaymentDataRequest,
99
PaymentOptions,
10-
} from '../types/index';
10+
} from '../types';
1111

1212
import type { GooglePayPlugin } from './definitions';
1313

types/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export interface IntermediateAddress {
387387
*
388388
* Also note: The returned postal code may vary based on the user's
389389
* geographic region. For Canada and United Kingdom, this contains only
390-
* the first three characters. For US, the this contain the first five
390+
* the first three characters. For US, this contains the first five
391391
* digits.
392392
*/
393393
postalCode: string;
@@ -525,7 +525,7 @@ export interface DirectTokenizationParameters {
525525

526526
/**
527527
* Elliptic Curve public key suitable for using with the NIST P-126
528-
* curve. This public key will used to encrypt the sensitive payment
528+
* curve. This public key will be used to encrypt the sensitive payment
529529
* method information.
530530
*
531531
* This field is required when the payment method requires encryption.
@@ -632,7 +632,7 @@ export interface CardParameters {
632632
* TransactionInfo.countryCode is set
633633
* to
634634
* "BR", users will be prompted to choose whether to process the
635-
* transaction over a debit network or credit network and you should use
635+
* transaction over a debit network or credit network, and you should use
636636
* this field to know which network to process the transaction with. For
637637
* all other markets, this field will be set to a suggestion of a card
638638
* network to use for processing, but you or your processor may choose
@@ -828,7 +828,7 @@ export interface TransactionInfo {
828828
* dialog page.
829829
*
830830
* This field is optional, but required if developer wants to show cart
831-
* information. Otherwise the cart modal dialog will not be rendered
831+
* information. Otherwise, the cart modal dialog will not be rendered
832832
* even if transactionInfo.displayItems is set.
833833
*/
834834
totalPriceLabel?: string | undefined;
@@ -983,7 +983,7 @@ export interface PaymentMethodTokenizationData {
983983
*/
984984
export interface PaymentDataError {
985985
/**
986-
* Predifined error reason
986+
* Predefined error reason
987987
*
988988
* This field is required.
989989
*/
@@ -1152,7 +1152,7 @@ type CardNetwork =
11521152
* reuse the credential across unrelated transactions.
11531153
*
11541154
* - `CRYPTOGRAM_3DS`:
1155-
* Authenticate using the a 3-D Secure (3DS) cryptogram.
1155+
* Authenticate using the 3-D Secure (3DS) cryptogram.
11561156
*
11571157
* Note: in addition to the 3DS cryptogram there will also be an
11581158
* associated PAN (personal account number), expiration month and year,
@@ -1184,7 +1184,7 @@ type CardAuthMethod = 'PAN_ONLY' | 'CRYPTOGRAM_3DS';
11841184
* - Address.name
11851185
* - Address.countryCode
11861186
* - Address.postalCode
1187-
* - Address.phoneNumberif BillingAddressParameters.phoneNumberRequired is set to `true`.
1187+
* - Address.phoneNumber if BillingAddressParameters.phoneNumberRequired is set to `true`.
11881188
*
11891189
* Note: some countries do not use postal codes. The postal code field
11901190
* will be empty in those countries.
@@ -1388,7 +1388,7 @@ type CallbackTrigger =
13881388
* cannot be charged.
13891389
*
13901390
* - `OTHER_ERROR`:
1391-
* A catch all for error not fitting anywhere else.
1391+
* A catch-all for error not fitting anywhere else.
13921392
*/
13931393
type ErrorReason =
13941394
| 'SHIPPING_ADDRESS_INVALID'

0 commit comments

Comments
 (0)