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.
- package/dist/assets/js/pages/payment/checkout/index.js +2 -1
- package/dist/assets/js/pages/payment/checkout/modules/api.js +2 -0
- package/dist/assets/js/pages/payment/confirmation/index.js +7 -7
- package/package.json +1 -1
- package/.playwright-mcp/page-2025-12-03T03-53-50-384Z.png +0 -0
- package/.playwright-mcp/page-2025-12-03T04-01-07-072Z.png +0 -0
- package/.playwright-mcp/page-2025-12-09T08-57-21-148Z.png +0 -0
- package/.playwright-mcp/page-2025-12-09T09-11-17-887Z.png +0 -0
- package/.playwright-mcp/page-2025-12-09T09-11-41-348Z.png +0 -0
- package/.playwright-mcp/page-2025-12-17T11-59-17-759Z.png +0 -0
- package/.playwright-mcp/page-2025-12-17T12-21-41-964Z.png +0 -0
- package/.playwright-mcp/page-2025-12-17T12-40-54-242Z.png +0 -0
|
@@ -75,7 +75,8 @@ async function initializeCheckout() {
|
|
|
75
75
|
|
|
76
76
|
// App config is required
|
|
77
77
|
if (appConfigResult.status === 'rejected') {
|
|
78
|
-
|
|
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?
|
|
8
|
+
https://localhost:3000/payment/confirmation?orderId=ORD-TRIAL-123&productId=pro&productName=Pro%20Plan&amount=0¤cy=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('
|
|
40
|
-
const productId = urlParams.get('
|
|
41
|
-
const productName = urlParams.get('
|
|
42
|
-
const total = parseFloat(urlParams.get('amount') ||
|
|
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')
|
|
45
|
-
const paymentMethod = urlParams.get('
|
|
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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|