Function errorFromStripe

Converts an error coming from Stripe into an object with a consistent shape.

  • Parameters

    • err: StripeError

    Returns {
        code: undefined | string;
        message: string;
        param: undefined | string;
        status_code: number;
    }

    • code: undefined | string
    • message: string
    • param: undefined | string
    • status_code: number