@wirexapp/card-wallet-topup-web 0.1.0-beta.4 → 0.1.0-beta.5
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/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* VERBATIM as the execute call's `wallet_payment_token`. No 3DS ever
|
|
17
17
|
* happens on this path; reconcile the money-moved truth on your backend.
|
|
18
18
|
*/
|
|
19
|
-
import { PciWalletTopUpElement, type PciSdkConfig, type PciWalletAvailability, type PciWalletProviderConfig, type PciWalletTopUpElementConfig } from '@wirexapp/card-sdk-core';
|
|
19
|
+
import { PciWalletTopUpElement, type PciSdkConfig, type PciWalletAvailability, type PciWalletProviderConfig, type PciWalletTopUpElementConfig, type PciWalletTopUpPopup, type PciWalletTopUpPopupConfig } from '@wirexapp/card-sdk-core';
|
|
20
20
|
/** Config of the combined (review + buttons) wallet checkout element. */
|
|
21
21
|
export type WalletTopUpFormConfig = PciWalletTopUpElementConfig;
|
|
22
22
|
export type WalletTopUpForm = PciWalletTopUpElement;
|
|
@@ -37,4 +37,12 @@ export declare const checkWalletAvailability: (sdk: PciSdkConfig, options?: Chec
|
|
|
37
37
|
export declare const createWalletTopUpForm: (sdk: PciSdkConfig, config: WalletTopUpFormConfig) => WalletTopUpForm;
|
|
38
38
|
export type * from '@wirexapp/card-sdk-core';
|
|
39
39
|
export { PciFrameRequestError } from '@wirexapp/card-sdk-core';
|
|
40
|
+
/** Mode B: the wallet checkout opened TOP-LEVEL in a popup on the frames
|
|
41
|
+
* domain. Apple binds merchant sessions to the top-level page's domain — in
|
|
42
|
+
* a popup that is the frames origin itself (already Apple-verified), so
|
|
43
|
+
* hosts need NO Apple domain registration or association file in this mode.
|
|
44
|
+
* MUST be called synchronously from a click handler (popup blockers). The
|
|
45
|
+
* encrypted token still arrives in `onToken`; the host still executes. */
|
|
46
|
+
export declare const openWalletCheckoutPopup: (sdk: PciSdkConfig, config: PciWalletTopUpPopupConfig) => PciWalletTopUpPopup;
|
|
47
|
+
export type { PciWalletTopUpPopup as WalletTopUpPopup, PciWalletTopUpPopupConfig as WalletTopUpPopupConfig };
|
|
40
48
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAIL,qBAAqB,EACrB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC/B,MAAM,yBAAyB,CAAC;AAEjC,yEAAyE;AACzE,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC;AASpD,MAAM,WAAW,8BAA8B;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;yDAEqD;IACrD,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,KAAK,YAAY,EACjB,UAAU,8BAA8B,KACvC,OAAO,CAAC,qBAAqB,CAY/B,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,GAChC,KAAK,YAAY,EACjB,QAAQ,qBAAqB,KAC5B,eAA2F,CAAC;AAI/F,mBAAmB,yBAAyB,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;2EAK2E;AAC3E,eAAO,MAAM,uBAAuB,GAClC,KAAK,YAAY,EACjB,QAAQ,yBAAyB,KAChC,mBAA0F,CAAC;AAE9F,YAAY,EAAE,mBAAmB,IAAI,gBAAgB,EAAE,yBAAyB,IAAI,sBAAsB,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* VERBATIM as the execute call's `wallet_payment_token`. No 3DS ever
|
|
17
17
|
* happens on this path; reconcile the money-moved truth on your backend.
|
|
18
18
|
*/
|
|
19
|
-
import { buildFrameUrl, probeWalletAvailability, PciWalletTopUpElement, } from '@wirexapp/card-sdk-core';
|
|
19
|
+
import { buildFrameUrl, openWalletTopUpPopup, probeWalletAvailability, PciWalletTopUpElement, } from '@wirexapp/card-sdk-core';
|
|
20
20
|
/** One probe per frame URL (environment + client) per page session — the
|
|
21
21
|
* checks take no transaction context, so the result cannot go stale within a
|
|
22
22
|
* session. The provider config is assumed stable per session (it comes from
|
|
@@ -47,4 +47,11 @@ export const createWalletTopUpForm = (sdk, config) => new PciWalletTopUpElement(
|
|
|
47
47
|
// Value re-export so `error instanceof PciFrameRequestError` works when
|
|
48
48
|
// imported from this package.
|
|
49
49
|
export { PciFrameRequestError } from '@wirexapp/card-sdk-core';
|
|
50
|
+
/** Mode B: the wallet checkout opened TOP-LEVEL in a popup on the frames
|
|
51
|
+
* domain. Apple binds merchant sessions to the top-level page's domain — in
|
|
52
|
+
* a popup that is the frames origin itself (already Apple-verified), so
|
|
53
|
+
* hosts need NO Apple domain registration or association file in this mode.
|
|
54
|
+
* MUST be called synchronously from a click handler (popup blockers). The
|
|
55
|
+
* encrypted token still arrives in `onToken`; the host still executes. */
|
|
56
|
+
export const openWalletCheckoutPopup = (sdk, config) => openWalletTopUpPopup(buildFrameUrl(sdk, 'wallet-checkout'), config);
|
|
50
57
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,GAOtB,MAAM,yBAAyB,CAAC;AAMjC;;;;cAIc;AACd,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAA0C,CAAC;AAU5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,GAAiB,EACjB,OAAwC,EACR,EAAE;IAClC,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IACpD,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;QACpB,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC/C,IAAI,MAAM;YAAE,OAAO,MAAM,CAAC;IAC5B,CAAC;IACD,MAAM,KAAK,GAAG,uBAAuB,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;QACxF,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IACH,iBAAiB,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACvC,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,kFAAkF;AAClF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,GAAiB,EACjB,MAA6B,EACZ,EAAE,CAAC,IAAI,qBAAqB,CAAC,aAAa,CAAC,GAAG,EAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAAC;AAK/F,wEAAwE;AACxE,8BAA8B;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;2EAK2E;AAC3E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,GAAiB,EACjB,MAAiC,EACZ,EAAE,CAAC,oBAAoB,CAAC,aAAa,CAAC,GAAG,EAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirexapp/card-wallet-topup-web",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Top up via Apple Pay / Google Pay inside a Wirex-served checkout iframe — review screen + wallet buttons under Wirex's merchant identity; the payment sheet's encrypted token is returned to the host, which executes the top-up. No wallet onboarding on the partner side.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"prepublishOnly": "yarn clean && yarn build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@wirexapp/card-sdk-core": "0.1.0-beta.
|
|
40
|
+
"@wirexapp/card-sdk-core": "0.1.0-beta.5"
|
|
41
41
|
}
|
|
42
42
|
}
|