You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Dynamically fetch OAuth URLs when needed
This prevents always loading OAuth URLs at page load and then loading
them via AJAX when needed.
- Add checks to prevent OAuth URL calls at page loads.
- Add AJAX endpoint to fetch Stripe OAuth URLs dynamically
- Update client-side React component to load OAuth URLs asynchronously
- Conditionally fetch OAuth URLs based on account connection status
* Add a test
* Add changelog entries
* Move loading indicator into the primary button
? __('Create or connect a test account','woocommerce-gateway-stripe')
67
+
: __('Create or connect an account','woocommerce-gateway-stripe');
68
+
69
+
return(
70
+
<divclassName="woocommerce-stripe-auth__actions">
71
+
{error ? (
72
+
<InlineNoticeisDismissible={false}status="error">
73
+
{interpolateComponents({
74
+
mixedString: __(
75
+
'An issue occurred generating a connection to Stripe, please ensure your server has a valid SSL certificate and try again.{{br /}}For assistance, refer to our {{Link}}documentation{{/Link}}.',
'An issue occurred generating a connection to Stripe, please ensure your server has a valid SSL certificate and try again.{{br /}}For assistance, refer to our {{Link}}documentation{{/Link}}.',
0 commit comments