Commit ccfba767 authored by mattwire's avatar mattwire
Browse files

Fix #352#354 no such plan exists

parent d8de1376
......@@ -309,7 +309,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
try {
$plan = $this->stripeClient->plans->retrieve($planId);
}
catch (Stripe\Exception\InvalidRequestException $e) {
catch (\Stripe\Exception\InvalidRequestException $e) {
$err = self::parseStripeException('plan_retrieve', $e, FALSE);
if ($err['code'] === 'resource_missing') {
$formatted_amount = CRM_Utils_Money::formatLocaleNumericRoundedByCurrency(($amount / 100), $currency);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment