@pandait.tech/payment-nuvei 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/handlers/index.js
CHANGED
|
@@ -891,7 +891,7 @@ function createWebhookHandler(deps) {
|
|
|
891
891
|
}
|
|
892
892
|
const isApproved = transaction.status === "success" && transaction.status_detail === 3;
|
|
893
893
|
const currentStatus = orderDoc.data()?.status;
|
|
894
|
-
const finalStatuses = ["paid", "delivered", "shipped"];
|
|
894
|
+
const finalStatuses = ["paid", "delivered", "shipped", "refunded"];
|
|
895
895
|
const shouldUpdateStatus = isApproved || !finalStatuses.includes(currentStatus);
|
|
896
896
|
const orderData = orderDoc.data() ?? {};
|
|
897
897
|
const webhookAuthCode = transaction.authorization_code;
|