File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const STRIPE_PHP_URL = LEGACY_API_URL + '/stripe/prepare_payment.php ' ;
3+ const STRIPE_PREPARE_PAYMENT_URL = API_BASE_URL + '/billing/ stripe/payments/prepare ' ;
44
55class OneTimePayment {
66
@@ -85,7 +85,7 @@ class OneTimePayment {
8585 this . _status . success = false ;
8686
8787 let preparedPayment = $ . ajax ( {
88- url : STRIPE_PHP_URL ,
88+ url : STRIPE_PREPARE_PAYMENT_URL ,
8989 type : 'POST' ,
9090 data : {
9191 currency : currency ,
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const REQUEST_CUSTOMER_PORTAL_URL = LEGACY_API_URL + '/stripe/request_customer_portal.php ' ;
3+ const REQUEST_CUSTOMER_PORTAL_URL = API_BASE_URL + '/billing/ stripe/portal/request-link ' ;
44
55class CustomerPortal {
66
Original file line number Diff line number Diff line change 4848 {{ i18n "donate_creditcard_once_paynow" }}
4949 </ button >
5050
51- {{ partial "captcha.html" (dict "captchaPayload" "oneTimePaymentStatus.captcha" "captchaState" "captchaState") }}
51+ {{ $captchaUrl := printf "%s/billing/stripe/payments/challenge" .Site.Params.apiBaseUrl }}
52+ {{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "oneTimePaymentStatus.captcha" "captchaState" "captchaState") }}
5253
5354 < p class ="text-sm text-red-600 mt-2 " x-text ="oneTimePaymentStatus.errorMessage "> </ p >
5455 </ div >
You can’t perform that action at this time.
0 commit comments