@mundogamernetwork/shared-ui 1.1.4 → 1.1.9

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.
@@ -32,9 +32,10 @@ export function usePaymentMethods(httpService: AxiosInstance) {
32
32
  } catch (e: any) {
33
33
  // Fallback: if endpoint doesn't exist yet (404), provide default methods
34
34
  console.warn("[usePaymentMethods] Endpoint not available, using fallback:", e?.response?.status);
35
+ // Canonical IDs (api-main): PayPal = 2, Stripe = 3
35
36
  methods.value = [
36
- { id: 0, name: "paypal" },
37
- { id: 1, name: "Stripe" },
37
+ { id: 2, name: "paypal" },
38
+ { id: 3, name: "stripe" },
38
39
  ];
39
40
  if (methods.value.length > 0 && !selectedMethod.value) {
40
41
  selectedMethod.value = methods.value[0].name.toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.1.4",
3
+ "version": "1.1.9",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -40,4 +40,4 @@
40
40
  "nuxt": "^3.15.4",
41
41
  "typescript": "^5.0.0"
42
42
  }
43
- }
43
+ }