gocardless-pro-php
gocardless-pro-php copied to clipboard
Malformed Response Exception
I am using version 5.4 of gocardless pro and it does not work for me, the library always returns that error, example:
$access_token = 'my_production_token'; $client = new \GoCardlessPro\Client(array( 'access_token' => $access_token, 'environment' => \GoCardlessPro\Environment::LIVE ));
$client->billingRequestFlows()->create([ "params" => [ "redirect_uri" => "https://my-company.com/landing", "exit_uri" => "https://my-company.com/exit", "prefilled_customer" => [ "given_name" => "Frank", "family_name" => "Osborne", "email" => "[email protected]" ], "links" => [ "billing_request" => "BRQ123" ] ] ]);