Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /../plugins/rm-payment.php
My guess is that you’re accessing $response as an array when it’s a \WP_Error. Check out the possible return values of wp_remote_post: (array|WP_Error) The response or WP_Error on failure. You should modify your code in a couple of ways: $response = wp_remote_post( $remote_url, $request ); if ( is_wp_error( $response ) ) { // handle the … Read more