Skip to content
Snippets Groups Projects
Commit ccfba767 authored by mattwire's avatar mattwire
Browse files

Fix #352#354 no such plan exists

parent d8de1376
Branches
Tags
1 merge request!176Release 6.7
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment