Invoices can't be marked as successful or failed.

There was a reference to `$this->uri()` which doesn't exist. I think it was a relic of some of the old code.

I added checking to see if the `_links`  reference exists and then call it using the same type of call as the coupon code class.