Skip to content

Commit 051e55d

Browse files
committed
Merge branch 'develop'
2 parents 95a0051 + 944a00d commit 051e55d

File tree

24 files changed

+17
-53
lines changed

24 files changed

+17
-53
lines changed

assets/js/androidkey.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use strict";
22

3-
// requires store.js
43
// requires newsletter.js
54

65
class AndroidLicense {

assets/js/cardpayments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
// requires store.js
3+
const STRIPE_PHP_URL = BASE_API_URL + '/stripe/prepare_payment.php';
44

55
class OneTimePayment {
66

assets/js/store.dev.js renamed to assets/js/const.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use strict";
22

3+
const BASE_API_URL = 'http://localhost';
34
const PADDLE_ENABLE_SANDBOX = true;
45
const PADDLE_VENDOR_ID = 1385;
56
const PADDLE_DESKTOP_PRODUCT_IDS = [54582, 54583, 54584];
@@ -10,4 +11,3 @@ const PADDLE_PRICES_URL = 'https://sandbox-checkout.paddle.com/api/2.0/prices';
1011
const STORE_API_URL = 'http://localhost:8787/api';
1112
const STRIPE_PK = 'pk_test_JhF3MoFQGw2Is0DB3BSv345P';
1213
const STRIPE_PLANS = {'EUR': 'plan_GgVY2JfD49bc02', 'USD': 'plan_GgVZwj545E0uH3'};
13-
const STRIPE_PHP_URL = 'http://localhost/stripe/prepare_payment.php';

assets/js/store.prod.js renamed to assets/js/const.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use strict";
22

3+
const BASE_API_URL = 'https://api.cryptomator.org';
34
const PADDLE_ENABLE_SANDBOX = false;
45
const PADDLE_VENDOR_ID = 39223;
56
const PADDLE_DESKTOP_PRODUCT_IDS = [840163, 840164, 840165];
@@ -10,4 +11,3 @@ const PADDLE_PRICES_URL = 'https://checkout.paddle.com/api/2.0/prices';
1011
const STORE_API_URL = 'https://store.cryptomator.org/api';
1112
const STRIPE_PK = 'pk_live_eSasX216vGvC26GdbVwA011V';
1213
const STRIPE_PLANS = {'EUR': 'plan_GgW4ovr7c6upzx', 'USD': 'plan_GejOEdJtfL3kdH'};
13-
const STRIPE_PHP_URL = 'https://api.cryptomator.org/stripe/prepare_payment.php';

assets/js/customerportal.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use strict";
22

3-
const REQUEST_CUSTOMER_PORTAL_URL = 'https://api.cryptomator.org/stripe/request_customer_portal.php';
4-
5-
// const REQUEST_CUSTOMER_PORTAL_URL = 'http://localhost/stripe/request_customer_portal.php';
3+
const REQUEST_CUSTOMER_PORTAL_URL = BASE_API_URL + '/stripe/request_customer_portal.php';
64

75
class CustomerPortal {
86

assets/js/desktopkey.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use strict";
22

3-
// requires store.js
43
// requires newsletter.js
54

65
class DesktopLicense {

assets/js/hubdemo.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use strict";
22

3-
// requires store.js
43
const REQUEST_HUB_DEMO_URL = STORE_API_URL + '/hub/request-demo';
54

65
class HubDemo {

assets/js/hubmanaged.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use strict";
22

3-
// requires store.js
43
// requires newsletter.js
54
const REQUEST_HUB_MANAGED_URL = STORE_API_URL + '/hub/request-managed';
65
const VALIDATE_HUB_MANAGED_REQUEST_URL = STORE_API_URL + '/hub/validate-managed-request';

assets/js/hubpricing.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"use strict";
22

3-
// requires store.js
4-
53
class HubPricing {
64

75
constructor(data) {

assets/js/hubsubscription.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use strict";
22

3-
// requires store.js
43
const BILLING_PORTAL_SESSION_URL = STORE_API_URL + '/hub/billing-portal-session';
54
const CUSTOM_BILLING_URL = STORE_API_URL + '/hub/custom-billing';
65
const GENERATE_PAY_LINK_URL = STORE_API_URL + '/hub/generate-pay-link';

0 commit comments

Comments
 (0)