@wirexapp/card-topup-web 0.1.0-beta.0

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 ADDED
@@ -0,0 +1,15 @@
1
+ # @wirexapp/card-topup-web
2
+
3
+ ## 0.1.0-beta.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1ff075a: Initial public beta of the Wirex PCI card SDK family: collect (top-up + OCT
8
+ destination), own-card reveal, 3DS step-up, React bindings, and the umbrella
9
+ package — all versioned in lockstep. Card data renders only inside
10
+ Wirex-served iframes; the packages are CHD-free loaders.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [1ff075a]
15
+ - @wirexapp/card-sdk-core@0.1.0-beta.0
package/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # @wirexapp/card-topup-web
2
+
3
+ Collect an external debit/credit card for top-up (PAN / expiry / CVV / name) inside
4
+ Wirex-served PCI iframes and tokenize straight from the frame to the card service.
5
+ The host page receives only `{ cardId, brand, bin, last4, expiryMonth, expiryYear }`
6
+ — card data never touches it. CHD-free loader.
7
+
8
+ - `createCardTopUpFields(sdk, config)` — per-field variant: one iframe per field,
9
+ host-arranged layout.
10
+ - `createCardTopUpForm(sdk, config)` — combined single-iframe variant.
11
+
12
+ The OCT tokenizer is not exposed by this package — see `@wirexapp/card-oct-web`.
13
+ React bindings: `@wirexapp/card-react`. Full partner docs: `partner-docs/` in the
14
+ repo (packages → card-topup-web).
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `@wirexapp/card-topup-web` — collect an external card for top-up (PAN /
3
+ * expiry / CVV / name) inside Wirex-served iframes and tokenize it straight
4
+ * from the frame to the card service. The host receives only the resulting
5
+ * `card_id` + non-sensitive metadata.
6
+ *
7
+ * Thin profile wrapper over the collect machinery in `@wirexapp/card-sdk-core`
8
+ * with the profile fixed to `topup` — the OCT tokenizer is not exposed.
9
+ */
10
+ import { PciCollectElement, PciCollectGroup, type PciCollectElementConfig, type PciCollectGroupConfig, type PciSdkConfig } from '@wirexapp/card-sdk-core';
11
+ /** Collect config with the profile pre-bound. */
12
+ export type CardTopUpFormConfig = Omit<PciCollectElementConfig, 'profile'>;
13
+ export type CardTopUpFieldsConfig = Omit<PciCollectGroupConfig, 'profile'>;
14
+ /** Public surface of the two variants — the OCT tokenizer is excluded. */
15
+ export type CardTopUpForm = Omit<PciCollectElement, 'tokenizeOctDestination'>;
16
+ export type CardTopUpFields = Omit<PciCollectGroup, 'tokenizeOctDestination'>;
17
+ /** Per-field (split) variant: one iframe per card field, host-arranged layout. */
18
+ export declare const createCardTopUpFields: (sdk: PciSdkConfig, config: CardTopUpFieldsConfig) => CardTopUpFields;
19
+ /** Combined (single-form) variant: all card fields in one iframe. */
20
+ export declare const createCardTopUpForm: (sdk: PciSdkConfig, config: CardTopUpFormConfig) => CardTopUpForm;
21
+ export type * from '@wirexapp/card-sdk-core';
22
+ export { PciFrameRequestError } from '@wirexapp/card-sdk-core';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAEL,iBAAiB,EACjB,eAAe,EACf,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AAEjC,iDAAiD;AACjD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;AAE3E,0EAA0E;AAC1E,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,iBAAiB,EAAE,wBAAwB,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAC;AAE9E,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,GAAI,KAAK,YAAY,EAAE,QAAQ,qBAAqB,KAAG,eACE,CAAC;AAE5F,qEAAqE;AACrE,eAAO,MAAM,mBAAmB,GAAI,KAAK,YAAY,EAAE,QAAQ,mBAAmB,KAAG,aACE,CAAC;AAIxF,mBAAmB,yBAAyB,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * `@wirexapp/card-topup-web` — collect an external card for top-up (PAN /
3
+ * expiry / CVV / name) inside Wirex-served iframes and tokenize it straight
4
+ * from the frame to the card service. The host receives only the resulting
5
+ * `card_id` + non-sensitive metadata.
6
+ *
7
+ * Thin profile wrapper over the collect machinery in `@wirexapp/card-sdk-core`
8
+ * with the profile fixed to `topup` — the OCT tokenizer is not exposed.
9
+ */
10
+ import { buildFrameUrl, PciCollectElement, PciCollectGroup, } from '@wirexapp/card-sdk-core';
11
+ /** Per-field (split) variant: one iframe per card field, host-arranged layout. */
12
+ export const createCardTopUpFields = (sdk, config) => new PciCollectGroup(buildFrameUrl(sdk, 'collect-field'), { ...config, profile: 'topup' });
13
+ /** Combined (single-form) variant: all card fields in one iframe. */
14
+ export const createCardTopUpForm = (sdk, config) => new PciCollectElement(buildFrameUrl(sdk, 'collect'), { ...config, profile: 'topup' });
15
+ // Value re-export so `error instanceof PciFrameRequestError` works when
16
+ // imported from this package.
17
+ export { PciFrameRequestError } from '@wirexapp/card-sdk-core';
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,eAAe,GAIhB,MAAM,yBAAyB,CAAC;AAUjC,kFAAkF;AAClF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAiB,EAAE,MAA6B,EAAmB,EAAE,CACzG,IAAI,eAAe,CAAC,aAAa,CAAC,GAAG,EAAE,eAAe,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AAE5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAiB,EAAE,MAA2B,EAAiB,EAAE,CACnG,IAAI,iBAAiB,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AAKxF,wEAAwE;AACxE,8BAA8B;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@wirexapp/card-topup-web",
3
+ "version": "0.1.0-beta.0",
4
+ "type": "module",
5
+ "description": "Collect an external card for top-up inside Wirex-served PCI iframes; the host receives only a token. CHD-free loader.",
6
+ "license": "UNLICENSED",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ }
15
+ },
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "main": "./dist/index.js",
19
+ "module": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js"
25
+ }
26
+ }
27
+ },
28
+ "files": [
29
+ "dist",
30
+ "README.md"
31
+ ],
32
+ "scripts": {
33
+ "build": "tsc -p tsconfig.build.json",
34
+ "dev": "tsc -p tsconfig.build.json --watch",
35
+ "clean": "rm -rf dist",
36
+ "typecheck": "yarn run -T tsc --noEmit",
37
+ "prepublishOnly": "yarn clean && yarn build"
38
+ },
39
+ "dependencies": {
40
+ "@wirexapp/card-sdk-core": "0.1.0-beta.0"
41
+ }
42
+ }