@payfurl/client 4.11.0 → 4.11.1
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 +22 -0
- package/README.md +22 -0
- package/dist/sdk/{PayWayAppleButton-BzAwlGS-.js → PayWayAppleButton-B1Ttj4J_.js} +1 -1
- package/dist/sdk/payfurl.d.ts +17 -2
- package/dist/sdk/payfurl.es.js +9 -9
- package/dist/sdk/payfurl.umd.js +3 -3
- package/dist/sdk/{payway_rest-D8-T-ULx.js → payway_rest-4Pjb1c7k.js} +1 -1
- package/dist/sdk/{strings-Dp6oE-U1.js → strings-DyifLS9r.js} +13 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ version 4.9.3.
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 4.11.1 (2026-11-11)
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `paypalButtonStyle`, in `addPaypal()` and `addDropIn()`, also takes PayPal's button style as an object, such as
|
|
14
|
+
`{ color: 'black', shape: 'pill', label: 'pay' }`, to set the buttons' shape, label, layout and height as well as
|
|
15
|
+
their colour.
|
|
16
|
+
- `addDropIn()` takes `paypalHideShipping`, which redacts the shipping address from the PayPal site, as
|
|
17
|
+
`hideShipping` does in `addPaypal()`.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- In TypeScript, `paypalButtonStyle` is now typed as one of the colours (`gold`, `blue`, `silver`, `white`,
|
|
22
|
+
`black`) or a button style object, in place of any string. If you pass a variable typed `string`, type it as
|
|
23
|
+
`PaypalButtonColor`, exported by `@payfurl/client`.
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- `addDropIn()` now uses `paypalButtonStyle` and `paypalEnablePayIn4`. Before, the drop-in always showed a gold
|
|
28
|
+
PayPal button without Pay Later, whatever you passed.
|
|
29
|
+
- When PayPal rejects the button style, `onPaymentMethodStatus()` now reports PayPal as `unavailable`.
|
|
30
|
+
|
|
9
31
|
## 4.11.0 (2026-11-06)
|
|
10
32
|
|
|
11
33
|
### Added
|
package/README.md
CHANGED
|
@@ -103,6 +103,28 @@ 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.1 (2026-11-11)
|
|
107
|
+
|
|
108
|
+
#### Added
|
|
109
|
+
|
|
110
|
+
- `paypalButtonStyle`, in `addPaypal()` and `addDropIn()`, also takes PayPal's button style as an object, such as
|
|
111
|
+
`{ color: 'black', shape: 'pill', label: 'pay' }`, to set the buttons' shape, label, layout and height as well as
|
|
112
|
+
their colour.
|
|
113
|
+
- `addDropIn()` takes `paypalHideShipping`, which redacts the shipping address from the PayPal site, as
|
|
114
|
+
`hideShipping` does in `addPaypal()`.
|
|
115
|
+
|
|
116
|
+
#### Changed
|
|
117
|
+
|
|
118
|
+
- In TypeScript, `paypalButtonStyle` is now typed as one of the colours (`gold`, `blue`, `silver`, `white`,
|
|
119
|
+
`black`) or a button style object, in place of any string. If you pass a variable typed `string`, type it as
|
|
120
|
+
`PaypalButtonColor`, exported by `@payfurl/client`.
|
|
121
|
+
|
|
122
|
+
#### Fixed
|
|
123
|
+
|
|
124
|
+
- `addDropIn()` now uses `paypalButtonStyle` and `paypalEnablePayIn4`. Before, the drop-in always showed a gold
|
|
125
|
+
PayPal button without Pay Later, whatever you passed.
|
|
126
|
+
- When PayPal rejects the button style, `onPaymentMethodStatus()` now reports PayPal as `unavailable`.
|
|
127
|
+
|
|
106
128
|
### 4.11.0 (2026-11-06)
|
|
107
129
|
|
|
108
130
|
#### Added
|
package/dist/sdk/payfurl.d.ts
CHANGED
|
@@ -163,8 +163,9 @@ export declare type DropInGooglePayOptionsType = {
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
export declare type DropInOptionsType = {
|
|
166
|
-
paypalButtonStyle?:
|
|
166
|
+
paypalButtonStyle?: PaypalButtonColor | PaypalButtonStyle;
|
|
167
167
|
paypalEnablePayIn4?: boolean;
|
|
168
|
+
paypalHideShipping?: boolean;
|
|
168
169
|
cardProviderId?: string;
|
|
169
170
|
paypalProviderId?: string;
|
|
170
171
|
payToProviderId?: string;
|
|
@@ -361,9 +362,23 @@ declare enum PaymentType {
|
|
|
361
362
|
dlocal = "dlocal"
|
|
362
363
|
}
|
|
363
364
|
|
|
365
|
+
export declare type PaypalButtonColor = "gold" | "blue" | "silver" | "white" | "black";
|
|
366
|
+
|
|
367
|
+
export declare type PaypalButtonStyle = {
|
|
368
|
+
color?: PaypalButtonColor;
|
|
369
|
+
shape?: "rect" | "pill" | "sharp";
|
|
370
|
+
borderRadius?: number;
|
|
371
|
+
label?: "paypal" | "checkout" | "buynow" | "pay" | "installment";
|
|
372
|
+
period?: number;
|
|
373
|
+
layout?: "vertical" | "horizontal";
|
|
374
|
+
height?: number;
|
|
375
|
+
tagline?: boolean;
|
|
376
|
+
disableMaxWidth?: boolean;
|
|
377
|
+
};
|
|
378
|
+
|
|
364
379
|
export declare type PaypalOptionsType = {
|
|
365
380
|
hideShipping?: boolean;
|
|
366
|
-
paypalButtonStyle?:
|
|
381
|
+
paypalButtonStyle?: PaypalButtonColor | PaypalButtonStyle | null;
|
|
367
382
|
paypalEnablePayIn4?: boolean;
|
|
368
383
|
transfer?: {
|
|
369
384
|
account: string;
|
package/dist/sdk/payfurl.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./strings-
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./strings-DyifLS9r.js";
|
|
2
2
|
import { t as d } from "./screen-aNRlfrZR.js";
|
|
3
3
|
import { t as f } from "./redact-Bn_hfytX.js";
|
|
4
4
|
import { $ as p, At as m, B as h, Bt as g, C as ee, Ct as _, Dt as v, Et as y, Ft as te, G as ne, H as re, Ht as ie, I as b, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as x, N as de, Nt as fe, Ot as pe, Pt as me, R as he, Rt as ge, S as _e, St as S, Tt as C, U as ve, Ut as ye, V as be, Vt as w, Wt as T, X as xe, _t as Se, a as Ce, at as we, b as Te, bt as Ee, c as De, ct as Oe, d as ke, dt as Ae, et as je, f as Me, ft as Ne, gt as Pe, ht as E, it as Fe, j as Ie, jt as Le, kt as D, lt as Re, m as ze, mt as O, n as Be, nt as Ve, o as He, ot as Ue, pt as We, q as Ge, r as Ke, rt as k, st as A, t as qe, tt as j, ut as Je, v as Ye, vt as Xe, w as Ze, wt as M, x as Qe, xt as $e, y as et, yt as tt, z as nt, zt as N } from "./CloseIcon-Ejad61tT.js";
|
|
@@ -761,8 +761,8 @@ var jt = { style: { position: "relative" } }, Mt = {
|
|
|
761
761
|
}, document.body.appendChild(r);
|
|
762
762
|
}
|
|
763
763
|
function p() {
|
|
764
|
-
window.paypal && window.paypal.Buttons && window.paypal.Buttons({
|
|
765
|
-
style: { color: n.buttonStyle },
|
|
764
|
+
window.paypal && window.paypal.Buttons && new Promise((e) => e(window.paypal.Buttons({
|
|
765
|
+
style: typeof n.buttonStyle == "string" ? { color: n.buttonStyle } : n.buttonStyle ?? {},
|
|
766
766
|
createOrder: function() {
|
|
767
767
|
return s.value?.gatewayTransactionId;
|
|
768
768
|
},
|
|
@@ -777,7 +777,7 @@ var jt = { style: { position: "relative" } }, Mt = {
|
|
|
777
777
|
n.clickGate()?.() === !1 ? t.disable() : t.enable();
|
|
778
778
|
}, 1e3);
|
|
779
779
|
}
|
|
780
|
-
}).render(n.el).then(() => window.postMessage({
|
|
780
|
+
}).render(n.el))).then(() => window.postMessage({
|
|
781
781
|
status: Qe,
|
|
782
782
|
paymentMethod: "paypal"
|
|
783
783
|
}, "*")).catch((e) => h(e?.message || "PayPal buttons failed to render"));
|
|
@@ -3738,8 +3738,8 @@ var yr = { style: { position: "relative" } }, br = {
|
|
|
3738
3738
|
ar(/* #__PURE__ */ Object.assign({
|
|
3739
3739
|
"./applepay/ApplePayButton.interface.ts": () => import("./ApplePayButton.interface-BvRk9kiK.js"),
|
|
3740
3740
|
"./applepay/ApplePayButtonOptions.type.ts": () => import("./ApplePayButtonOptions.type-BvRk9kiK.js"),
|
|
3741
|
-
"./applepay/PayWayAppleButton.ts": () => import("./PayWayAppleButton-
|
|
3742
|
-
"./applepay/payway_rest.ts": () => import("./payway_rest-
|
|
3741
|
+
"./applepay/PayWayAppleButton.ts": () => import("./PayWayAppleButton-B1Ttj4J_.js"),
|
|
3742
|
+
"./applepay/payway_rest.ts": () => import("./payway_rest-4Pjb1c7k.js")
|
|
3743
3743
|
}), `./applepay/${i.providerType?.toLowerCase()}.ts`, 3).then(L(this, "[localAddApplePay], then", (e) => {
|
|
3744
3744
|
this.log(`Loading ${i.providerType}...`, e), c(e);
|
|
3745
3745
|
})).catch(() => {
|
|
@@ -5707,9 +5707,9 @@ var { hideSpinner: Ei } = Be(), Di = {
|
|
|
5707
5707
|
} : void 0
|
|
5708
5708
|
}
|
|
5709
5709
|
}, h = {
|
|
5710
|
-
hideShipping:
|
|
5711
|
-
paypalButtonStyle:
|
|
5712
|
-
paypalEnablePayIn4:
|
|
5710
|
+
hideShipping: !!i?.paypalHideShipping,
|
|
5711
|
+
paypalButtonStyle: i?.paypalButtonStyle,
|
|
5712
|
+
paypalEnablePayIn4: !!i?.paypalEnablePayIn4,
|
|
5713
5713
|
transfer: null,
|
|
5714
5714
|
metadata: U(i?.metadata)
|
|
5715
5715
|
}, g = {
|