Skip to content

Error "Unable to parse response body into JSON: 4" when sending request #12

@konrad-ch

Description

@konrad-ch

Hello, I think I'm doing everything right:

$gateway = Omnipay::create("Coinbase");
$gateway->initialize(['apiKey' => 'my_api_v2_key_with_all_perm', 'secret' => 'my_api_secret', 'accountId' => 'my_acc_id']);
$transaction = $gateway->purchase(['amount' => 10, 'currency' => 'USD', 'description' => 'something']);
$response = $transaction->send();

but getting an error message on send():

Unableto parse response body into JSON: 4

Whats going on? I've managed to check that this error is caused by empty (NULL) json returned by guzzle. But what causes it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions