Economic plugin
This commit is contained in:
1 parent
2e54c5627b
commit
12ee10a3d4
4 files changed
+69
-35
No files matched your search
@@ -230,7 +230,6 @@ class OrderService extends BaseService {
|
||||
return this.retrieve(order._id)
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error)
|
||||
throw error
|
||||
})
|
||||
})
|
||||
@@ -287,7 +286,7 @@ class OrderService extends BaseService {
|
||||
// If payment status is not authorized, we throw
|
||||
if (paymentStatus !== "authorized") {
|
||||
throw new MedusaError(
|
||||
MedusaError.types.INVALID_ARGUMENT,
|
||||
MedusaError.Types.INVALID_ARGUMENT,
|
||||
"Payment method is not authorized"
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user