@wf-financing/ui-sdk 2.1.1 → 2.1.3

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/README.md +5 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -41,6 +41,11 @@ const partnerCallback: PartnerCallbackType = await () => {
41
41
  wayflyerUiSdk.mountCta(targetId, partnerCallback);
42
42
  ```
43
43
 
44
+ ### `partnerCallback`
45
+ The `partnerCallback` function is called when a user agrees to the terms and conditions in the consent modal, immediately prior to starting the hosted application and redirecting the user to Wayflyer. The callback should return data of type `StartHostedApplicationRequestType`, which will be passed to Wayflyer to pre-populate the user's funding application.
46
+
47
+ The callback may also be used to execute partner-related logic in response to the user agreeing to Wayflyer’s terms and conditions.
48
+
44
49
  ## Sandbox
45
50
 
46
51
  To simplify the testing process, the SDK can be initialized in sandbox mode. To do so, pass the second argument of type `SdkOptionsType` with `isSandbox` flag set to `true`. In sandbox mode, the partner can simulate responses for SDK methods with the help of the additional package `@wf-financing/sandbox-ui`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wf-financing/ui-sdk",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@wf-financing/embedded-types": "0.5.0"
18
+ "@wf-financing/embedded-types": "0.6.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "vite": "^6.3.5",