Skip to content

Commit 10476dd

Browse files
authored
Merge pull request #730 from Adyen/docs-update
Fix typos in docs
2 parents 50dfb8c + 6fd9f77 commit 10476dd

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

docs/Compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* set `apiVersion` in `node_modules/@react-native/gradle-plugin/build.gradle.kts` to at least **1.7**
55

66
> [!NOTE]
7-
> Google has introduced new [target API level requirements for Google Play apps](https://support.google.com/googleplay/android-developer/answer/11926878?hl=en) on August 31 2024.
8-
> React-Native version **73** and below considered deprecated.
7+
> Google has introduced new [target API level requirements for Google Play apps](https://support.google.com/googleplay/android-developer/answer/11926878?hl=en) on August 31, 2024.
8+
> React-Native version **73** and below are considered deprecated.
99
1010
## React-Native v0.72 and below
1111

docs/Configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
| `skipListWhenSinglePaymentMethod` | When set to **true**, allow to skip payment methods list step when there is only one non-instant payment method. Defaults to **false**. | No |
3434
| `title` | Set custom title for preselected stored payment method view Drop-in on iOS. By default app's name is used. This property has no effect on Android. | No |
3535
| `showRemovePaymentMethodButton` | When set to **true**, the shopper can remove stored payment details using the UI. Defaults to **false**. For the `/sessions` flow, this option works out of the box. For the `/payments`(aka Advanced) flow, you must also use the `onDisableStorePaymentMethod` callback. | No |
36-
| `onDisableStoredPaymentMethod(storedPaymentMethod, resolve, reject) => {}` | Called when `showRemovePaymentMethodButton` is **true** and the shopper selects to remove stored payment details during the `/payments` (aka Advanced) flow. Make a POST [`/disable`](https://docs.adyen.com/api-explorer/Recurring/68/post/disable) request. If succesfull, call `resolve()`, otherwise `reject()`. | No |
36+
| `onDisableStoredPaymentMethod(storedPaymentMethod, resolve, reject) => {}` | Called when `showRemovePaymentMethodButton` is **true** and the shopper selects to remove stored payment details during the `/payments` (aka Advanced) flow. Make a POST [`/disable`](https://docs.adyen.com/api-explorer/Recurring/68/post/disable) request. If successful, call `resolve()`, otherwise `reject()`. | No |
3737

3838
### Card component
3939

@@ -47,7 +47,7 @@
4747
| `kcpVisibility` | Indicates whether to show the security fields for South Korea-issued cards. Options: **"show"** or **"hide"**. Defaults to **"hide"**. | No |
4848
| `showStorePaymentField` | Indicates if the field for storing the card payment method should be displayed in the form. Defaults to **true**. | No |
4949
| `socialSecurity` | Indicates the visibility mode for the social security number field (CPF/CNPJ) for Brazilian cards. Options: "show" or **"hide"**. Defaults to **"hide"**. | No |
50-
| `supported` | The list of allowed card types. By default, a list of `brands` from the payment method is used. Fallbacks to list of all known cards. | No |
50+
| `supported` | The list of allowed card types. By default, a list of `brands` from the payment method is used. Fallbacks to a list of all known cards. | No |
5151
| `onUpdateAddress: (prompt, lookup) => {}` | The callback to provide `lookup` results for shopper-selected `prompt`. Used when `addressVisibility` is set to **lookup** | No |
5252
| `onConfirmAddress: (address, lookup) => {}` | The callback to confirm the selected `address` to the `lookup`. Used when `addressVisibility` is set to **lookup** | No |
5353
| `onBinLookup: (binData) => {}` | An optional callback that is triggered when the BIN lookup data is available. | No |
@@ -77,7 +77,7 @@
7777
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
7878
| `merchantID` | The [Merchant ID](https://developer.apple.com/library/archive/ApplePay_Guide/Configuration.html) for Apple Pay. | Yes |
7979
| `merchantName` | The merchant name. This value will be used to generate a single _PKPaymentSummaryItem_. | Yes, if `summaryItems` is not provided. |
80-
| `allowOnboarding` | The flag to toggle onboarding. If **true**, allow the shopper to add cards to Apple Pay if none exist yet or none is applicable. If **false**, Apple Pay is disabled when the shopper doesn’t have supported cards on the Apple Pay wallet. The default is **false**. | No |
80+
| `allowOnboarding` | The flag to toggle onboarding. If **true**, allow the shopper to add cards to Apple Pay if none exist yet or none are applicable. If **false**, Apple Pay is disabled when the shopper doesn’t have supported cards on the Apple Pay wallet. The default is **false**. | No |
8181
| `summaryItems` | An array of [payment summary item](https://developer.apple.com/documentation/passkit/pkpaymentrequest/1619231-paymentsummaryitems) objects that summarize the amount of the payment. The last element of this array must contain the same value as `amount` on the Checkout `\payments` API request. <br>**WARNING**: Adyen uses integer minor units, whereas Apple uses `NSDecimalNumber`. | Yes, if `merchantName` is not provided. |
8282
| `requiredShippingContactFields` | A list of fields that you need for a shipping contact to process the transaction. The list is empty by default. | No |
8383
| `requiredBillingContactFields` | A list of fields that you need for a billing contact to process the transaction. The list is empty by default. | No |
@@ -243,15 +243,15 @@ const configuration = {
243243
description: 'My Subscription',
244244
regularBilling: {
245245
amount: 1000,
246-
label: 'Monthy payment',
246+
label: 'Monthly payment',
247247
intervalCount: 1,
248248
intervalUnit: 'month',
249249
startDate: new Date('2025-04-28'),
250250
},
251251
managementURL: 'https://my-domain.com/managementURL',
252252
trialBilling: {
253253
amount: 10,
254-
label: 'Trail week',
254+
label: 'Trial week',
255255
intervalCount: 7,
256256
intervalUnit: 'day',
257257
endDate: new Date('2025-04-21'),

docs/Customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## iOS
44

5-
In **Xcode** create swift class 'AdyenAppearance' extending protocol 'AdyenAppearanceProvider'.
5+
In **Xcode** create swift class 'AdyenAppearance' and extend the protocol 'AdyenAppearanceProvider'.
66
SDK will use reflection to find the class with this exact name.
77

88
```swift

docs/Error codes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| notSupported | Not supported on current platform. |
77
| noClientKey | No clientKey in configuration |
88
| noPayment | No payment in configuration |
9-
| invalidPaymentMethods | Can not parse paymentMethods or the list is empty |
10-
| invalidAction | Can not parse action |
11-
| noPaymentMethod | Can not find payment method of selected type in provided list |
9+
| invalidPaymentMethods | Cannot parse paymentMethods or the list is empty |
10+
| invalidAction | Cannot parse action |
11+
| noPaymentMethod | Cannot find payment method of selected type in provided list |
1212
| sessionError | Error while creating new session |

docs/Localization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Localization
22

3-
By default, the React Native library uses a device's locale. To enable necessary translations for iOS, make sure “Localizations” in the project configuration contains all required languages. If the device's locale is not supported, localization fallback to `en-US`.
3+
By default, the React Native library uses a device's locale. To enable necessary translations for iOS, make sure “Localizations” in the project configuration contains all required languages. If the device's locale is not supported, localization fallbacks to `en-US`.
44

55
Titles of payment methods are fetched from the Adyen API and localized according to the `shopperLocale` value you set in your [/paymentMethods](https://docs.adyen.com/api-explorer/Checkout/68/post/paymentMethods#request-shopperLocale) or [/sessions](https://docs.adyen.com/api-explorer/Checkout/71/post/sessions#request-shopperLocale) requests.
66

docs/v2-MigrationGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Android
66

7-
* Merchant's app theme must be a descendent of `Theme.MaterialComponents` to operate with "instant" payment components (ex. Paypal, Klarna). Example:
7+
* Merchant's app theme must be a descendant of `Theme.MaterialComponents` to operate with "instant" payment components (ex. Paypal, Klarna). Example:
88
```xml
99
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
1010
```

0 commit comments

Comments
 (0)