medusa-payment-stripe
Advanced tools
Comparing version 1.1.3 to 1.1.4-next.9
{ | ||
"name": "medusa-payment-stripe", | ||
"version": "1.1.3", | ||
"version": "1.1.4-next.9+999e8053", | ||
"description": "Stripe Payment provider for Meduas Commerce", | ||
@@ -46,3 +46,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "c2a075a6b166250cd997dd3f0e8e3f07178f6f39" | ||
"gitHead": "999e8053ea6948184afbaebbae86beee10c72cd9" | ||
} |
@@ -382,3 +382,3 @@ "use strict"; | ||
intentRequest = { | ||
amount: amount, | ||
amount: Math.round(amount), | ||
currency: currency_code, | ||
@@ -649,3 +649,3 @@ setup_future_usage: "on_session", | ||
case 6: | ||
if (!(cart.total && sessionData.amount === cart.total)) { | ||
if (!(cart.total && sessionData.amount === Math.round(cart.total))) { | ||
_context10.next = 8; | ||
@@ -659,3 +659,3 @@ break; | ||
return _context10.abrupt("return", this.stripe_.paymentIntents.update(sessionData.id, { | ||
amount: cart.total | ||
amount: Math.round(cart.total) | ||
})); | ||
@@ -829,3 +829,3 @@ | ||
return this.stripe_.refunds.create({ | ||
amount: amountToRefund, | ||
amount: Math.round(amountToRefund), | ||
payment_intent: id | ||
@@ -832,0 +832,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58673
2
1