Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

muazzamazaz's avatar

Laravel Woocommerce Integration Error: An error occurred in the request and at the time were unable to send the consumer data

I have this code in Laravel but getting above error after authentication granted.

Route::get('/woo/authorize', function (Request $request) {
$store_url = 'https://easywaretech.com/';
$endpoint = '/wc-auth/v1/authorize';
$params = [
    'app_name' => 'Eastern Fullfillment',
    'scope' => 'write',
    'user_id' => 123,
    'return_url' => 'https://dev.easternfulfillment.com/',
    'callback_url' => 'https://dev.easternfulfillment.com/'
];
$query_string = http_build_query( $params );

return Redirect::away($store_url . $endpoint . '?' . $query_string);

});
0 likes
2 replies
deladels's avatar

is it possible to dump the $query_string variable as well as the final url that's supposed to be the redirect link?

Please or to participate in this conversation.