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
returnnewWP_Error( 'error_gocardless_create_refund', esc_html__( 'GoCardless refund endpoint is disabled by default. Please contact [email protected] to enable it for you.', 'woocommerce-gateway-gocardless' ) );
199
200
}
200
201
202
+
/*
203
+
* Error Handling for 401 unauthorized response code.
204
+
*
205
+
* If API respond with 401 unauthorized response code, it means:
206
+
*
207
+
* - `access_token_not_found` (the access token was not recognised); or
208
+
* - `access_token_revoked` (the user has revoked your access to their account); or
209
+
* - `access_token_not_active` (the access token is inactive for another reason)
210
+
*
211
+
* We need to disconnect from GoCardless and display a notice to the user to connect again.
__( 'The connection to your <strong>GoCardless</strong> account has been disconnected because the access token is no longer active or valid. Please <a href="%s">connect</a> your GoCardless account to continue accepting payments.', 'woocommerce-gateway-gocardless' ),
0 commit comments