File tree Expand file tree Collapse file tree 13 files changed +22
-22
lines changed
Expand file tree Collapse file tree 13 files changed +22
-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 LEGACY_API_URL = '{{ .Site.Params.legacyApiUrl }}' ;
44const PADDLE_ENABLE_SANDBOX = { { . Site . Params . paddleEnableSandbox } } ;
55const PADDLE_TOKEN = { { . Site . Params . paddleToken } } ;
66const PADDLE_VENDOR_ID = { { . Site . Params . paddleVendorId } } ;
@@ -9,6 +9,6 @@ const PADDLE_ANDROID_PRICE_ID = {{ .Site.Params.paddleAndroidPriceId }};
99const PADDLE_HUB_SELF_HOSTED_SUBSCRIPTION_PLAN_ID = { { . Site . Params . paddleHubSelfHostedSubscriptionPlanId } } ;
1010const PADDLE_HUB_MANAGED_SUBSCRIPTION_PLAN_ID = { { . Site . Params . paddleHubManagedSubscriptionPlanId } } ;
1111const PADDLE_PRICES_URL = '{{ .Site.Params.paddlePricesUrl }}' ;
12- const STORE_API_URL = '{{ .Site.Params.storeApiUrl }}' ;
12+ const LEGACY_STORE_URL = '{{ .Site.Params.legacyStoreUrl }}' ;
1313const STRIPE_PK = '{{ .Site.Params.stripePk }}' ;
1414const 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 1- baseApiUrl = " http://localhost"
2- storeApiUrl = " http://localhost:8787/api"
1+ legacyApiUrl = " http://localhost"
2+ legacyStoreUrl = " http://localhost:8787/api"
33
44umamiWebsiteId = " 57a36f3a-bd97-4d8a-9563-0e8d39ddb20c"
55
You can’t perform that action at this time.
0 commit comments