You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix it :
/**
* Retrieve a Coupon instance by its ID
*
* @throws HttpException:
* - If the couponId is invalid (the coupon does not exists...)
*
* @seehttps://stripe.com/docs/api#coupons
*
* @param string $couponId: The coupon ID
*
* @return Coupon
*/
public function retrieveCoupon($couponId)
{
try {
return Coupon::retrieve($couponId);
} catch(\Exception $e) {
return false;
}
}
The text was updated successfully, but these errors were encountered:
To fix it :
/**
* Retrieve a Coupon instance by its ID
*
* @throws HttpException:
* - If the couponId is invalid (the coupon does not exists...)
*
* @see https://stripe.com/docs/api#coupons
*
* @param string $couponId: The coupon ID
*
* @return Coupon
*/
public function retrieveCoupon($couponId)
{
try {
return Coupon::retrieve($couponId);
} catch(\Exception $e) {
return false;
}
}
The text was updated successfully, but these errors were encountered: