@wirexapp/card-sdk-web 0.1.0-beta.3 → 0.1.0-beta.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @wirexapp/card-sdk-web
2
2
 
3
+ ## 0.1.0-beta.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 0a24437: Wallet top-up reworked to the confirmed backend contract ("Wallet Top-Ups
8
+ Integration"): the checkout frame now TOKENIZES AND RETURNS instead of
9
+ executing. Breaking within the beta line for the wallet surface only
10
+ (collect/reveal/3ds untouched):
11
+
12
+ - `createWalletTopUpForm` / `<WalletTopUpForm />` take `{ quote, walletConfig }`
13
+ (the host's estimate response + the app config's `topup` provider block,
14
+ passed verbatim) instead of `{ session: { estimationId, getCheckoutToken } }`
15
+ — `checkout_token` does not exist in the confirmed contract.
16
+ - The payment sheet's encrypted payload arrives in `onToken` (replaces
17
+ `onResult`); relay it verbatim as the execute call's `wallet_payment_token`.
18
+ The execute watchdog is gone (the host owns execute), and the
19
+ `threeDsRequired` result is removed — `three_ds_state` is never present on a
20
+ wallet top-up.
21
+ - New `onAttemptFailed(reason)` callback for sheet attempts that produce no
22
+ token (e.g. merchant validation failure).
23
+ - `checkWalletAvailability` / `useWalletAvailability` accept the provider
24
+ config so the Google readiness check uses the backend's
25
+ `allowed_auth_methods` / networks verbatim instead of built-in defaults.
26
+ - Frames: the checkout document no longer calls estimation-view/config/execute
27
+ endpoints (its only backend call is Apple merchant validation); the dev mock
28
+ API now mirrors the real contract shapes (`/api/v1/cards/topup/estimate`,
29
+ `/execute`, `/api/v1/config` `topup` block).
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [0a24437]
34
+ - @wirexapp/card-sdk-core@0.1.0-beta.4
35
+ - @wirexapp/card-wallet-topup-web@0.1.0-beta.4
36
+ - @wirexapp/card-oct-web@0.1.0-beta.4
37
+ - @wirexapp/card-reveal-web@0.1.0-beta.4
38
+ - @wirexapp/card-topup-web@0.1.0-beta.4
39
+ - @wirexapp/card-3ds-web@0.1.0-beta.4
40
+
3
41
  ## 0.1.0-beta.3
4
42
 
5
43
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirexapp/card-sdk-web",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0-beta.4",
4
4
  "type": "module",
5
5
  "description": "Umbrella over the Wirex PCI card SDK capability packages (topup, oct, reveal) with the createPciSdk factory. CHD-free loader.",
6
6
  "license": "UNLICENSED",
@@ -37,11 +37,11 @@
37
37
  "prepublishOnly": "yarn clean && yarn build"
38
38
  },
39
39
  "dependencies": {
40
- "@wirexapp/card-3ds-web": "0.1.0-beta.3",
41
- "@wirexapp/card-oct-web": "0.1.0-beta.3",
42
- "@wirexapp/card-reveal-web": "0.1.0-beta.3",
43
- "@wirexapp/card-sdk-core": "0.1.0-beta.3",
44
- "@wirexapp/card-topup-web": "0.1.0-beta.3",
45
- "@wirexapp/card-wallet-topup-web": "0.1.0-beta.3"
40
+ "@wirexapp/card-3ds-web": "0.1.0-beta.4",
41
+ "@wirexapp/card-oct-web": "0.1.0-beta.4",
42
+ "@wirexapp/card-reveal-web": "0.1.0-beta.4",
43
+ "@wirexapp/card-sdk-core": "0.1.0-beta.4",
44
+ "@wirexapp/card-topup-web": "0.1.0-beta.4",
45
+ "@wirexapp/card-wallet-topup-web": "0.1.0-beta.4"
46
46
  }
47
47
  }