@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.
- package/components/checkout/MgCartItemList.vue +94 -43
- package/components/checkout/MgCartSummary.vue +100 -137
- package/components/checkout/MgCheckoutSidebar.vue +0 -2
- package/components/checkout/MgCouponInput.vue +211 -0
- package/components/checkout/MgGuestEmailForm.vue +0 -2
- package/components/checkout/MgPaymentMethodSelector.vue +17 -16
- package/components/checkout/MgPixQRCode.vue +0 -2
- package/components/ui/MgConfirmationPage.vue +415 -0
- package/composables/useConfirmation.ts +34 -5
- package/composables/useMgCheckout.ts +398 -166
- package/composables/usePaymentMethods.ts +3 -2
- package/package.json +2 -2
|
@@ -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:
|
|
37
|
-
{ id:
|
|
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.
|
|
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
|
+
}
|