fix(medusa-payment-stripe): Fix error handling (#5991)
This commit is contained in:
@@ -777,5 +777,5 @@ export abstract class AbstractPaymentProcessor implements PaymentProcessor {
|
||||
export function isPaymentProcessorError(
|
||||
obj: any
|
||||
): obj is PaymentProcessorError {
|
||||
return obj && typeof obj === "object" && (obj.error || obj.code || obj.detail)
|
||||
return obj && typeof obj === "object" && obj.error && obj.code && obj.detail
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user