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 1
1
"use strict" ;
2
2
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 ' ;
4
4
5
5
class OneTimePayment {
6
6
@@ -85,7 +85,7 @@ class OneTimePayment {
85
85
this . _status . success = false ;
86
86
87
87
let preparedPayment = $ . ajax ( {
88
- url : STRIPE_PHP_URL ,
88
+ url : STRIPE_PREPARE_PAYMENT_URL ,
89
89
type : 'POST' ,
90
90
data : {
91
91
currency : currency ,
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
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 ' ;
4
4
5
5
class CustomerPortal {
6
6
Original file line number Diff line number Diff line change 48
48
{{ i18n "donate_creditcard_once_paynow" }}
49
49
</ button >
50
50
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") }}
52
53
53
54
< p class ="text-sm text-red-600 mt-2 " x-text ="oneTimePaymentStatus.errorMessage "> </ p >
54
55
</ div >
You can’t perform that action at this time.
0 commit comments