@payrails/web-sdk 5.42.1-RC.4 → 5.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.42.1-RC.4",
3
+ "version": "5.43.0",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
package/payrails.d.ts CHANGED
@@ -731,6 +731,7 @@ interface ApplePayButtonOptions extends StoreInstrumentElementOptions {
731
731
  styles?: {
732
732
  type?: 'plain' | 'buy' | 'addMoney' | 'book' | 'checkout' | 'continue' | 'contribute' | 'donate' | 'inStore' | 'order' | 'reload' | 'rent' | 'setUp' | 'subscribe' | 'support' | 'tip' | 'topUp';
733
733
  style?: 'white' | 'whiteOutline' | 'black' | 'automatic';
734
+ locale?: string;
734
735
  } & StoreInstrumentElementOptions['styles'];
735
736
  }
736
737
  declare class ApplePayButton extends PayrailsElementWithStoreInstrumentCheckbox {
@@ -1513,7 +1514,9 @@ interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
1513
1514
  buttonColor?: google.payments.api.ButtonColor;
1514
1515
  buttonType?: google.payments.api.ButtonType;
1515
1516
  buttonSizeMode?: google.payments.api.ButtonSizeMode;
1517
+ /** @deprecated Use `locale` instead. */
1516
1518
  buttonLocale?: string;
1519
+ locale?: string;
1517
1520
  } & StoreInstrumentElementOptions['styles'];
1518
1521
  returnInfo?: ReturnInfo;
1519
1522
  }
@@ -1723,6 +1726,7 @@ interface PaypalButtonOptions extends StoreInstrumentElementOptions {
1723
1726
  label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment' | 'subscribe' | 'donate';
1724
1727
  shape?: 'rect' | 'pill';
1725
1728
  tagline?: boolean;
1729
+ locale?: string;
1726
1730
  } & StoreInstrumentElementOptions['styles'];
1727
1731
  }
1728
1732
  interface onPaypalShippingAddressChangedResponse {
@@ -2018,6 +2022,7 @@ interface PayPalScriptConfig {
2018
2022
  currency: string;
2019
2023
  vault: boolean;
2020
2024
  intent: 'tokenize' | 'capture' | 'authorize';
2025
+ locale?: string;
2021
2026
  }
2022
2027
  declare enum ThirdPartySDK {
2023
2028
  ApplePay = "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",