@blocklet/payment-react 1.18.5 → 1.18.6

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.
@@ -238,7 +238,7 @@ export default function PaymentForm({
238
238
  action: checkoutSession.mode,
239
239
  prefix: joinURL(getPrefix(), "/api/did"),
240
240
  saveConnect: false,
241
- extraParams: { checkoutSessionId: checkoutSession.id },
241
+ extraParams: { checkoutSessionId: checkoutSession.id, sessionUserDid: session?.user?.did },
242
242
  onSuccess: async () => {
243
243
  connect.close();
244
244
  await handleConnected();
@@ -276,7 +276,8 @@ function PaymentForm({
276
276
  prefix: (0, _ufo.joinURL)((0, _util.getPrefix)(), "/api/did"),
277
277
  saveConnect: false,
278
278
  extraParams: {
279
- checkoutSessionId: checkoutSession.id
279
+ checkoutSessionId: checkoutSession.id,
280
+ sessionUserDid: session?.user?.did
280
281
  },
281
282
  onSuccess: async () => {
282
283
  connect.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-react",
3
- "version": "1.18.5",
3
+ "version": "1.18.6",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -92,7 +92,7 @@
92
92
  "@babel/core": "^7.25.2",
93
93
  "@babel/preset-env": "^7.25.2",
94
94
  "@babel/preset-react": "^7.24.7",
95
- "@blocklet/payment-types": "1.18.5",
95
+ "@blocklet/payment-types": "1.18.6",
96
96
  "@storybook/addon-essentials": "^7.6.20",
97
97
  "@storybook/addon-interactions": "^7.6.20",
98
98
  "@storybook/addon-links": "^7.6.20",
@@ -123,5 +123,5 @@
123
123
  "vite-plugin-babel": "^1.2.0",
124
124
  "vite-plugin-node-polyfills": "^0.21.0"
125
125
  },
126
- "gitHead": "83cca0f1ac5814964c8bedd04f34a3a2a986f554"
126
+ "gitHead": "784ba57910d780a44d0792ef503b666ee8f8d9c3"
127
127
  }
@@ -316,7 +316,7 @@ export default function PaymentForm({
316
316
  action: checkoutSession.mode,
317
317
  prefix: joinURL(getPrefix(), '/api/did'),
318
318
  saveConnect: false,
319
- extraParams: { checkoutSessionId: checkoutSession.id },
319
+ extraParams: { checkoutSessionId: checkoutSession.id, sessionUserDid: session?.user?.did },
320
320
  onSuccess: async () => {
321
321
  connect.close();
322
322
  await handleConnected();