REST API can’t get the response manually
I was using wrong method wp_remote_post() will work. Here is the fix code: $args = array( ‘method’ => ‘POST’, ‘timeout’ => 45, ‘redirection’ => 5, ‘httpversion’ => ‘1.0’, ‘body’ => array( ‘store_name’ => $stidStore_name, ‘customer_name’ =>$stidCustomer_name, ‘payment_type’=> $stidPaymen_type, ‘amount’=> $stidAmount, ‘customer_address’=> $stidCustomer_country, ), ); $request = wp_remote_post( $stidUrl, $args); $response = wp_remote_retrieve_body( $request ); $response … Read more