@sesamy/sesamy-js 1.58.0 → 1.60.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/README.md +4 -4
- package/dist/sesamy-js.cjs +7 -7
- package/dist/sesamy-js.d.ts +30 -29
- package/dist/sesamy-js.iife.js +7 -7
- package/dist/sesamy-js.mjs +2503 -2600
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1167,7 +1167,7 @@ const checkout = await sesamy.checkouts.create({
|
|
|
1167
1167
|
email: 'customer@example.com',
|
|
1168
1168
|
redirectUrl: 'https://yoursite.com/checkout-complete',
|
|
1169
1169
|
requireAddress: true,
|
|
1170
|
-
|
|
1170
|
+
metadata: {
|
|
1171
1171
|
campaignId: 'summer_2024',
|
|
1172
1172
|
source: 'mobile_app',
|
|
1173
1173
|
},
|
|
@@ -1194,7 +1194,7 @@ const checkout = await sesamy.checkouts.create({
|
|
|
1194
1194
|
redirectUrl: 'https://yoursite.com/checkout-complete',
|
|
1195
1195
|
giftMode: true,
|
|
1196
1196
|
language: 'en',
|
|
1197
|
-
|
|
1197
|
+
metadata: {
|
|
1198
1198
|
giftMessage: 'Happy Birthday!',
|
|
1199
1199
|
giftFrom: 'John',
|
|
1200
1200
|
},
|
|
@@ -1242,7 +1242,7 @@ Updates an existing checkout session with Sesamy. You can update customer inform
|
|
|
1242
1242
|
- payerEmail (string, optional): Updated payer email.
|
|
1243
1243
|
- requireAddress (boolean, optional): Updated address requirement.
|
|
1244
1244
|
- giftMode (boolean, optional): Updated gift mode status.
|
|
1245
|
-
-
|
|
1245
|
+
- metadata (Record<string, string>, optional): Updated metadata.
|
|
1246
1246
|
|
|
1247
1247
|
### Returns
|
|
1248
1248
|
|
|
@@ -2861,7 +2861,7 @@ const checkoutUrl = client.checkout.generateLink(
|
|
|
2861
2861
|
redirectUrl: 'https://example.com/success',
|
|
2862
2862
|
requireAddress: true,
|
|
2863
2863
|
giftMode: false,
|
|
2864
|
-
|
|
2864
|
+
metadata: {
|
|
2865
2865
|
campaignId: 'summer_2024',
|
|
2866
2866
|
source: 'newsletter',
|
|
2867
2867
|
},
|