@tagadapay/plugin-sdk 2.4.5 → 2.4.7

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.
@@ -18,6 +18,7 @@ export function usePostPurchases(options) {
18
18
  try {
19
19
  const response = await apiService.fetch(`/api/v1/post-purchase/${orderId}/offers`, {
20
20
  method: 'GET',
21
+ skipAuth: true,
21
22
  });
22
23
  const fetchedOffers = response || [];
23
24
  setOffers(fetchedOffers);
@@ -69,6 +70,7 @@ export function usePostPurchases(options) {
69
70
  method: 'POST',
70
71
  body: JSON.stringify({
71
72
  checkoutSessionId,
73
+ skipAuth: true,
72
74
  metadata: {
73
75
  comingFromPostPurchase: true,
74
76
  postOrder: orderId,
@@ -237,6 +239,7 @@ export function usePostPurchases(options) {
237
239
  }
238
240
  const response = await apiService.fetch(`/api/v1/checkout-sessions/${sessionState.checkoutSessionId}/pay`, {
239
241
  method: 'POST',
242
+ skipAuth: true,
240
243
  body: JSON.stringify({
241
244
  checkoutSessionId: sessionState.checkoutSessionId,
242
245
  draft: options?.draft || false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagadapay/plugin-sdk",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "description": "Modern React SDK for building Tagada Pay plugins",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",