I want to handle this error, however I can't get it to work in my `catch`. I've tried using multiple error phrases such as `Stripe\Error\InvalidRequest` and `invalid_request_error`, but none of them work.

Note: I have only included the necessary code, my payment system works fine.

Here's my code:

```
try {
        $charge = \Stripe\Charge::create(array(
          'customer' => $customer->id,
          'amount'   => $amount,
          'currency' => strtolower($active_user->currency->currency_id)
        ));
    }
catch (Stripe\Error\InvalidRequest $e) {
        $msg = "Sorry, you cannot make the same payment twice.";
    }

```