Skip to content

Commit 8e6eda5

Browse files
committed
Adjust Stripe endpoints to new donations module
1 parent a48706d commit 8e6eda5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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-
const STRIPE_PREPARE_PAYMENT_URL = API_BASE_URL + '/billing/stripe/payments/prepare';
3+
const STRIPE_PREPARE_PAYMENT_URL = API_BASE_URL + '/donations/stripe/payments/prepare';
44

55
class OneTimePayment {
66

assets/js/customerportal.js

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

3-
const REQUEST_CUSTOMER_PORTAL_URL = API_BASE_URL + '/billing/stripe/portal/request-link';
3+
const REQUEST_CUSTOMER_PORTAL_URL = API_BASE_URL + '/donations/stripe/portal/request-link';
44

55
class CustomerPortal {
66

layouts/partials/donate-creditcard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
{{ i18n "donate_creditcard_once_paynow" }}
4949
</button>
5050

51-
{{ $captchaUrl := printf "%s/billing/stripe/payments/challenge" .Site.Params.apiBaseUrl }}
51+
{{ $captchaUrl := printf "%s/donations/stripe/payments/challenge" .Site.Params.apiBaseUrl }}
5252
{{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "oneTimePaymentStatus.captcha" "captchaState" "captchaState") }}
5353

5454
<p class="text-sm text-red-600 mt-2" x-text="oneTimePaymentStatus.errorMessage"></p>

0 commit comments

Comments
 (0)