ultimate-jekyll-manager 0.0.260 → 0.0.262

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.
@@ -75,7 +75,8 @@ async function initializeCheckout() {
75
75
 
76
76
  // App config is required
77
77
  if (appConfigResult.status === 'rejected') {
78
- throw new Error(`Failed to load checkout. Please refresh and try again.`);
78
+ const reason = appConfigResult.reason?.message || appConfigResult.reason || 'Unknown error';
79
+ throw new Error(`Failed to load checkout app config: ${reason}`);
79
80
  }
80
81
 
81
82
  const appConfig = appConfigResult.value;
@@ -7,6 +7,7 @@ import { getRecaptchaToken } from './recaptcha.js';
7
7
  export async function fetchAppConfig(webManager) {
8
8
  const response = await fetch(`${webManager.getApiUrl()}/backend-manager/app`, {
9
9
  response: 'json',
10
+ tries: 2,
10
11
  });
11
12
 
12
13
  console.log('Fetched app config:', response);
@@ -87,6 +88,7 @@ export async function createPaymentIntent({ webManager, state, processor, formDa
87
88
  const response = await authorizedFetch(`${webManager.getApiUrl()}/backend-manager/payments/intent`, {
88
89
  method: 'POST',
89
90
  response: 'json',
91
+ tries: 1,
90
92
  body: payload,
91
93
  });
92
94
 
@@ -5,7 +5,7 @@ import { initializeConfirmationUI, updateAllUI } from './modules/bindings.js';
5
5
  let webManager = null;
6
6
 
7
7
  /* Test URL
8
- https://localhost:3000/payment/confirmation?order_id=ORD-TRIAL-123&product_id=pro&product_name=Pro%20Plan&amount=0&currency=USD&frequency=annually&payment_method=stripe&trial=true&track=true
8
+ https://localhost:3000/payment/confirmation?orderId=ORD-TRIAL-123&productId=pro&productName=Pro%20Plan&amount=0&currency=USD&frequency=annually&paymentMethod=stripe&trial=true&track=true
9
9
  */
10
10
 
11
11
  // Module
@@ -36,13 +36,13 @@ function loadOrderData() {
36
36
  const urlParams = new URLSearchParams(window.location.search);
37
37
 
38
38
  // Parse raw data from URL
39
- const orderId = urlParams.get('order_id') || urlParams.get('transaction_id') || generateOrderNumber();
40
- const productId = urlParams.get('product_id') || urlParams.get('product');
41
- const productName = urlParams.get('product_name');
42
- const total = parseFloat(urlParams.get('amount') || urlParams.get('total') || 0);
39
+ const orderId = urlParams.get('orderId') || generateOrderNumber();
40
+ const productId = urlParams.get('productId');
41
+ const productName = urlParams.get('productName');
42
+ const total = parseFloat(urlParams.get('amount') || 0);
43
43
  const currency = urlParams.get('currency') || 'USD';
44
- const billingCycle = urlParams.get('frequency') || urlParams.get('billing_cycle');
45
- const paymentMethod = urlParams.get('payment_method');
44
+ const billingCycle = urlParams.get('frequency');
45
+ const paymentMethod = urlParams.get('paymentMethod');
46
46
  const hasFreeTrial = urlParams.get('trial') === 'true';
47
47
 
48
48
  // Build billing cycle text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.260",
3
+ "version": "0.0.262",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {