@payfurl/client 4.11.0 → 4.11.2
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 +32 -0
- package/README.md +32 -0
- package/dist/sdk/{DefaultThreeDsProvider-bLoDSnkd.js → DefaultThreeDsProvider-CJ7D2Irh.js} +4 -1
- package/dist/sdk/{MetricsGlobalThreeDsProvider-C93ttqbB.js → MetricsGlobalThreeDsProvider-c8-Fc5ST.js} +1 -1
- package/dist/sdk/{PayWayAppleButton-BzAwlGS-.js → PayWayAppleButton-u5eH-Gev.js} +1 -1
- package/dist/sdk/{cxpay-DblHb5vN.js → cxpay-Dugz0O74.js} +1 -1
- package/dist/sdk/{default-C7f86Fx-.js → default-DGxERUSN.js} +1 -1
- package/dist/sdk/{ecentric-B3UohyO_.js → ecentric-ByBa3UWI.js} +1 -1
- package/dist/sdk/{epna-DwUg2IlB.js → epna-DQVvimvd.js} +1 -1
- package/dist/sdk/{flashbanc-LXs8bahL.js → flashbanc-CBdnGJ_h.js} +1 -1
- package/dist/sdk/{forter-CLFaJUYa.js → forter-BbB3-cUq.js} +1 -1
- package/dist/sdk/{gpayments-DoZug3PV.js → gpayments-CmUdD9kJ.js} +1 -1
- package/dist/sdk/{metrics_global-BM-ooge-.js → metrics_global-DzTY7GMQ.js} +1 -1
- package/dist/sdk/{nmi-BA3ZTdQa.js → nmi-EgdsSmhg.js} +1 -1
- package/dist/sdk/{nuvei-DIWsLlLz.js → nuvei-DSwwNCnf.js} +1 -1
- package/dist/sdk/{payabli-DgrTI1Et.js → payabli-M87Lxo_m.js} +1 -1
- package/dist/sdk/payfurl.d.ts +17 -2
- package/dist/sdk/payfurl.es.js +858 -846
- package/dist/sdk/payfurl.umd.js +4 -4
- package/dist/sdk/{payglocal-ezp0MsaZ.js → payglocal-HYHj4xrA.js} +1 -1
- package/dist/sdk/{payway_rest-D8-T-ULx.js → payway_rest-DvyvbsDG.js} +1 -1
- package/dist/sdk/{skybank-BgDLlFXX.js → skybank-Divo_TW3.js} +1 -1
- package/dist/sdk/{strings-Dp6oE-U1.js → strings-C2ICfH1P.js} +13 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,38 @@ version 4.9.3.
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 4.11.2 (2026-11-12)
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- When the bank's 3-D Secure answer for a card is a failure, the card is still submitted to payFURL, so the failure
|
|
14
|
+
and its 3-D Secure result now show on the dashboard's Tokenise Failures page. The shopper sees the same message,
|
|
15
|
+
and `onFailure` gets the same `error` and `errorDetails.reason` as before.
|
|
16
|
+
- `isApplePayAvailable()` is now documented to work before `init()`, with no public key, as it already did:
|
|
17
|
+
you can decide whether to offer Apple Pay before you set up the SDK. No upgrade is needed for this.
|
|
18
|
+
|
|
19
|
+
## 4.11.1 (2026-11-11)
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- `paypalButtonStyle`, in `addPaypal()` and `addDropIn()`, also takes PayPal's button style as an object, such as
|
|
24
|
+
`{ color: 'black', shape: 'pill', label: 'pay' }`, to set the buttons' shape, label, layout and height as well as
|
|
25
|
+
their colour.
|
|
26
|
+
- `addDropIn()` takes `paypalHideShipping`, which redacts the shipping address from the PayPal site, as
|
|
27
|
+
`hideShipping` does in `addPaypal()`.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- In TypeScript, `paypalButtonStyle` is now typed as one of the colours (`gold`, `blue`, `silver`, `white`,
|
|
32
|
+
`black`) or a button style object, in place of any string. If you pass a variable typed `string`, type it as
|
|
33
|
+
`PaypalButtonColor`, exported by `@payfurl/client`.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- `addDropIn()` now uses `paypalButtonStyle` and `paypalEnablePayIn4`. Before, the drop-in always showed a gold
|
|
38
|
+
PayPal button without Pay Later, whatever you passed.
|
|
39
|
+
- When PayPal rejects the button style, `onPaymentMethodStatus()` now reports PayPal as `unavailable`.
|
|
40
|
+
|
|
9
41
|
## 4.11.0 (2026-11-06)
|
|
10
42
|
|
|
11
43
|
### Added
|
package/README.md
CHANGED
|
@@ -103,6 +103,38 @@ 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.2 (2026-11-12)
|
|
107
|
+
|
|
108
|
+
#### Changed
|
|
109
|
+
|
|
110
|
+
- When the bank's 3-D Secure answer for a card is a failure, the card is still submitted to payFURL, so the failure
|
|
111
|
+
and its 3-D Secure result now show on the dashboard's Tokenise Failures page. The shopper sees the same message,
|
|
112
|
+
and `onFailure` gets the same `error` and `errorDetails.reason` as before.
|
|
113
|
+
- `isApplePayAvailable()` is now documented to work before `init()`, with no public key, as it already did:
|
|
114
|
+
you can decide whether to offer Apple Pay before you set up the SDK. No upgrade is needed for this.
|
|
115
|
+
|
|
116
|
+
### 4.11.1 (2026-11-11)
|
|
117
|
+
|
|
118
|
+
#### Added
|
|
119
|
+
|
|
120
|
+
- `paypalButtonStyle`, in `addPaypal()` and `addDropIn()`, also takes PayPal's button style as an object, such as
|
|
121
|
+
`{ color: 'black', shape: 'pill', label: 'pay' }`, to set the buttons' shape, label, layout and height as well as
|
|
122
|
+
their colour.
|
|
123
|
+
- `addDropIn()` takes `paypalHideShipping`, which redacts the shipping address from the PayPal site, as
|
|
124
|
+
`hideShipping` does in `addPaypal()`.
|
|
125
|
+
|
|
126
|
+
#### Changed
|
|
127
|
+
|
|
128
|
+
- In TypeScript, `paypalButtonStyle` is now typed as one of the colours (`gold`, `blue`, `silver`, `white`,
|
|
129
|
+
`black`) or a button style object, in place of any string. If you pass a variable typed `string`, type it as
|
|
130
|
+
`PaypalButtonColor`, exported by `@payfurl/client`.
|
|
131
|
+
|
|
132
|
+
#### Fixed
|
|
133
|
+
|
|
134
|
+
- `addDropIn()` now uses `paypalButtonStyle` and `paypalEnablePayIn4`. Before, the drop-in always showed a gold
|
|
135
|
+
PayPal button without Pay Later, whatever you passed.
|
|
136
|
+
- When PayPal rejects the button style, `onPaymentMethodStatus()` now reports PayPal as `unavailable`.
|
|
137
|
+
|
|
106
138
|
### 4.11.0 (2026-11-06)
|
|
107
139
|
|
|
108
140
|
#### Added
|
|
@@ -139,7 +139,10 @@ var _ = { class: "mask" }, v = { class: "wrapper" }, y = { class: "container" },
|
|
|
139
139
|
onSuccess = (e, t) => {
|
|
140
140
|
this.closeChallenge(), w();
|
|
141
141
|
let n = JSON.parse(t);
|
|
142
|
-
["Y", "A"].includes(n.transStatus) ? this.threeDsProcessor?.onSuccess(n) : (this.log(`[${this.getType()}]: ${c}`, n), this.threeDsProcessor?.onError({
|
|
142
|
+
["Y", "A"].includes(n.transStatus) ? this.threeDsProcessor?.onSuccess(n) : (this.log(`[${this.getType()}]: ${c}`, n), this.threeDsProcessor?.onError({
|
|
143
|
+
error: c,
|
|
144
|
+
threeDSServerTransID: n.threeDSServerTransID
|
|
145
|
+
}));
|
|
143
146
|
};
|
|
144
147
|
threeDsMethodInvoke(e, t) {
|
|
145
148
|
this.log(`[${this.getType()}][threeDsMethodInvoke]`, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { t as e } from "./DefaultThreeDsProvider-CJ7D2Irh.js";
|
|
2
2
|
import { At as t, Bt as n, Mt as r, Ot as i, St as a, Tt as o, ht as s, jt as c, kt as l, n as u, t as d, tt as f, vt as p, zt as m } from "./CloseIcon-Ejad61tT.js";
|
|
3
3
|
import { t as h } from "./alerts-1YSRy5iI.js";
|
|
4
4
|
import { t as g } from "./screen-aNRlfrZR.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { t as e } from "./DefaultThreeDsProvider-CJ7D2Irh.js";
|
|
2
2
|
import { At as t, Bt as n, Mt as r, Ot as i, St as a, Tt as o, Vt as s, ft as c, ht as l, kt as u, t as d, tt as f, xt as p } from "./CloseIcon-Ejad61tT.js";
|
|
3
3
|
// src/sdk/3ds/ecentric.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" }, _ = ["action"], v = ["value"], y = /*#__PURE__*/ f(/* @__PURE__ */ u({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { t as e } from "./DefaultThreeDsProvider-CJ7D2Irh.js";
|
|
2
2
|
import { n as t, r as n, t as r } from "./managedOrders-ojoMZ0Ab.js";
|
|
3
3
|
import { n as i } from "./CloseIcon-Ejad61tT.js";
|
|
4
4
|
import { t as a } from "./whenRendered-jR4Jls4M.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./DefaultThreeDsProvider-
|
|
1
|
+
import { t as e } from "./DefaultThreeDsProvider-CJ7D2Irh.js";
|
|
2
2
|
import { Mt as t, St as n, Tt as r, Ut as i, ft as a, ht as o, kt as s, n as c, tt as l, xt as u } from "./CloseIcon-Ejad61tT.js";
|
|
3
3
|
// src/sdk/3ds/GPayments.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var d = { class: "mask" }, f = { class: "wrapper" }, p = ["src"], m = /*#__PURE__*/ l(/* @__PURE__ */ s({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { At as e, Mt as t, St as n, Tt as r, h as i, ht as a, kt as o, n as s, tt as c } from "./CloseIcon-Ejad61tT.js";
|
|
2
|
-
import { t as l } from "./DefaultThreeDsProvider-
|
|
2
|
+
import { t as l } from "./DefaultThreeDsProvider-CJ7D2Irh.js";
|
|
3
3
|
// src/sdk/3ds/nuvei.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var u = { class: "mask" }, d = /*#__PURE__*/ c(/* @__PURE__ */ o({
|
|
5
5
|
__name: "nuvei",
|
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;
|