Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

createButton() error #4

Closed
ghost opened this issue May 31, 2013 · 2 comments
Closed

createButton() error #4

ghost opened this issue May 31, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented May 31, 2013

I copy pasted the code on the Readme (php version) and everything seems to be working quite well. However I get the following error when I try to create a payment button using $coinbase->createButton()

Fatal error: Uncaught exception 'Coinbase_ApiException' with message 'Invalid response body' in ....

@isaacwaller
Copy link
Contributor

Could you try something like this:

try {
  $response = $coinbase->createButton("Your Order #1234", "42.95", "EUR", "my custom tracking code for this order", array(
            "description" => "1 widget at €42.95"
        ));
} catch (Coinbase_ApiException $e) {
  var_dump($e);
}

And paste the output here?

@ghost
Copy link
Author

ghost commented Jun 1, 2013

Thanks for taking a look. Today I found out that I get an error only if I use the symbol € in the description. Everything works perfectly if that symbol is removed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant