@payfurl/client 4.11.3 → 4.11.4

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/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@ version 4.9.3.
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 4.11.4 (2026-11-18)
10
+
11
+ ### Added
12
+
13
+ - Apple Pay `buttonOptions` in `addApplePay` and in `addDropIn`'s `applePayOptions`: set the Apple Pay button's
14
+ style (`black`, `white` or `white-outline`), its type (such as `donate`, `check-out`, `subscribe` or `plain`), its
15
+ locale, and its width, height and corner radius. Without it, the button stays a black "Buy with Apple Pay" button in
16
+ US English. The options don't apply to PayWay, which draws its own Apple Pay button.
17
+
9
18
  ## 4.11.3 (2026-11-17)
10
19
 
11
20
  ### Changed
package/README.md CHANGED
@@ -103,6 +103,15 @@ script on `assets.payfurl.com` share version numbers, so this covers both. The c
103
103
  version 4.9.3.
104
104
 
105
105
 
106
+ ### 4.11.4 (2026-11-18)
107
+
108
+ #### Added
109
+
110
+ - Apple Pay `buttonOptions` in `addApplePay` and in `addDropIn`'s `applePayOptions`: set the Apple Pay button's
111
+ style (`black`, `white` or `white-outline`), its type (such as `donate`, `check-out`, `subscribe` or `plain`), its
112
+ locale, and its width, height and corner radius. Without it, the button stays a black "Buy with Apple Pay" button in
113
+ US English. The options don't apply to PayWay, which draws its own Apple Pay button.
114
+
106
115
  ### 4.11.3 (2026-11-17)
107
116
 
108
117
  #### Changed
@@ -1,4 +1,4 @@
1
- import { d as e, o as t, r as n, s as r } from "./strings-yAlHZQqv.js";
1
+ import { d as e, o as t, r as n, s as r } from "./strings-B1OTvB_L.js";
2
2
  // src/sdk/processors/applepay/PayWayAppleButton.ts
3
3
  var i = {
4
4
  CHECKOUT: "CHECKOUT",
@@ -51,6 +51,25 @@ export declare type AddSavedPaymentMethodsOptionsType = {
51
51
  networkTokenOptions?: NetworkTokenOptionsType;
52
52
  };
53
53
 
54
+ export declare type ApplePayButtonOptionsType = {
55
+ /** Default "black". */
56
+ buttonStyle?: ApplePayButtonStyle;
57
+ /** Default "buy". */
58
+ type?: ApplePayButtonType;
59
+ /** A language tag such as "en-US" or "fr-FR". Default "en-US". */
60
+ locale?: string;
61
+ /** A number is pixels; a string is any CSS length, such as "100%". Apple's default is auto, and its minimum is 140px (100px for "plain"). */
62
+ width?: number | string;
63
+ /** A number is pixels; a string is any CSS length. Apple's default and minimum are 30px. */
64
+ height?: number | string;
65
+ /** A number is pixels; a string is any CSS length. Apple's default is 4px. */
66
+ borderRadius?: number | string;
67
+ };
68
+
69
+ export declare type ApplePayButtonStyle = "black" | "white" | "white-outline";
70
+
71
+ export declare type ApplePayButtonType = "add-money" | "book" | "buy" | "check-out" | "continue" | "contribute" | "donate" | "order" | "pay" | "plain" | "reload" | "rent" | "subscribe" | "support" | "tip" | "top-up";
72
+
54
73
  export declare type ApplePayMerchantCapabilityType = "supports3DS" | "supportsCredit" | "supportsDebit" | "supportsEMV";
55
74
 
56
75
  export declare type ApplePayOptionsType = {
@@ -74,6 +93,7 @@ export declare type ApplePayOptionsType = {
74
93
  supportedNetworks?: string[];
75
94
  supportedCountries?: string[];
76
95
  applePayVersion?: number;
96
+ buttonOptions?: ApplePayButtonOptionsType;
77
97
  };
78
98
 
79
99
  declare enum CardBrandType {
@@ -150,6 +170,7 @@ export declare type DropInApplePayOptionsType = {
150
170
  supportedNetworks?: string[];
151
171
  supportedCountries?: string[];
152
172
  applePayVersion?: number;
173
+ buttonOptions?: ApplePayButtonOptionsType;
153
174
  };
154
175
 
155
176
  export declare type DropInGooglePayOptionsType = {