File tree Expand file tree Collapse file tree 13 files changed +26
-22
lines changed Expand file tree Collapse file tree 13 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const STRIPE_PHP_URL = BASE_API_URL + '/stripe/prepare_payment.php' ;
3+ const STRIPE_PHP_URL = LEGACY_API_URL + '/stripe/prepare_payment.php' ;
44
55class OneTimePayment {
66
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const BASE_API_URL = '{{ .Site.Params.baseApiUrl }}' ;
3+ const API_BASE_URL = '{{ .Site.Params.apiBaseURL }}' ;
4+ const LEGACY_API_URL = '{{ .Site.Params.legacyApiUrl }}' ;
45const PADDLE_ENABLE_SANDBOX = { { . Site . Params . paddleEnableSandbox } } ;
56const PADDLE_VENDOR_ID = { { . Site . Params . paddleVendorId } } ;
67const PADDLE_DESKTOP_PRODUCT_IDS = { { . Site . Params . paddleDesktopProductIds | jsonify } } ;
78const PADDLE_ANDROID_PRODUCT_ID = { { . Site . Params . paddleAndroidProductId } } ;
89const PADDLE_HUB_SELF_HOSTED_SUBSCRIPTION_PLAN_ID = { { . Site . Params . paddleHubSelfHostedSubscriptionPlanId } } ;
910const PADDLE_HUB_MANAGED_SUBSCRIPTION_PLAN_ID = { { . Site . Params . paddleHubManagedSubscriptionPlanId } } ;
1011const PADDLE_PRICES_URL = '{{ .Site.Params.paddlePricesUrl }}' ;
11- const STORE_API_URL = '{{ .Site.Params.storeApiUrl }}' ;
12+ const LEGACY_STORE_URL = '{{ .Site.Params.legacyStoreUrl }}' ;
1213const STRIPE_PK = '{{ .Site.Params.stripePk }}' ;
1314const STRIPE_PLANS = { { . Site . Params . stripePlans | jsonify } } ;
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const REQUEST_CUSTOMER_PORTAL_URL = BASE_API_URL + '/stripe/request_customer_portal.php' ;
3+ const REQUEST_CUSTOMER_PORTAL_URL = LEGACY_API_URL + '/stripe/request_customer_portal.php' ;
44
55class CustomerPortal {
66
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const REQUEST_HUB_CONTACT_URL = STORE_API_URL + '/hub/request-contact' ;
3+ const REQUEST_HUB_CONTACT_URL = LEGACY_STORE_URL + '/hub/request-contact' ;
44
55class HubContact {
66
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const REQUEST_HUB_DEMO_URL = STORE_API_URL + '/hub/request-demo' ;
3+ const REQUEST_HUB_DEMO_URL = LEGACY_STORE_URL + '/hub/request-demo' ;
44
55class HubDemo {
66
Original file line number Diff line number Diff line change 11"use strict" ;
22
33// requires newsletter.js
4- const REQUEST_HUB_MANAGED_URL = STORE_API_URL + '/hub/request-managed' ;
5- const VALIDATE_HUB_MANAGED_REQUEST_URL = STORE_API_URL + '/hub/validate-managed-request' ;
4+ const REQUEST_HUB_MANAGED_URL = LEGACY_STORE_URL + '/hub/request-managed' ;
5+ const VALIDATE_HUB_MANAGED_REQUEST_URL = LEGACY_STORE_URL + '/hub/validate-managed-request' ;
66
77class HubManaged {
88
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const BILLING_PORTAL_SESSION_URL = STORE_API_URL + '/hub/billing-portal-session' ;
4- const CUSTOM_BILLING_URL = STORE_API_URL + '/hub/custom-billing' ;
5- const GENERATE_PAY_LINK_URL = STORE_API_URL + '/hub/generate-pay-link' ;
6- const MANAGE_SUBSCRIPTION_URL = STORE_API_URL + '/hub/manage-subscription' ;
7- const UPDATE_PAYMENT_METHOD_URL = STORE_API_URL + '/hub/update-payment-method' ;
3+ const BILLING_PORTAL_SESSION_URL = LEGACY_STORE_URL + '/hub/billing-portal-session' ;
4+ const CUSTOM_BILLING_URL = LEGACY_STORE_URL + '/hub/custom-billing' ;
5+ const GENERATE_PAY_LINK_URL = LEGACY_STORE_URL + '/hub/generate-pay-link' ;
6+ const MANAGE_SUBSCRIPTION_URL = LEGACY_STORE_URL + '/hub/manage-subscription' ;
7+ const UPDATE_PAYMENT_METHOD_URL = LEGACY_STORE_URL + '/hub/update-payment-method' ;
88
99class HubSubscription {
1010
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const SUBSCRIBE_NEWSLETTER_URL = BASE_API_URL + '/listmonk/subscribe.php' ;
3+ const SUBSCRIBE_NEWSLETTER_URL = LEGACY_API_URL + '/listmonk/subscribe.php' ;
44
55class Newsletter {
66
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const REQUEST_SUPPORTER_CERT_URL = STORE_API_URL + '/desktop/request-supporter-cert' ;
3+ const REQUEST_SUPPORTER_CERT_URL = LEGACY_STORE_URL + '/desktop/request-supporter-cert' ;
44
55class SupporterCertificate {
66
Original file line number Diff line number Diff line change 11# API
2- baseApiUrl : http://localhost
3- storeApiUrl : http://localhost:8787/api
2+ apiBaseURL : http://localhost:3300
3+ legacyApiUrl : http://localhost
4+ legacyStoreUrl : http://localhost:8787/api
45
56# UMAMI
67umamiWebsiteId : 57a36f3a-bd97-4d8a-9563-0e8d39ddb20c
You can’t perform that action at this time.
0 commit comments