@duvdu-v1/duvdu 1.1.351 → 1.1.353

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.
@@ -441,7 +441,7 @@ class PaymobPaymentProcessor {
441
441
  * @private
442
442
  */
443
443
  buildIntentionRequest(amount, billingData, items, currency, extras) {
444
- const amountInCents = amount * 100;
444
+ const amountInCents = Number((amount * 100).toFixed(2));
445
445
  return {
446
446
  amount: amountInCents,
447
447
  currency,
@@ -497,7 +497,7 @@ class PaymobPaymentProcessor {
497
497
  {
498
498
  name: `${userId}-${contractId}`,
499
499
  description: serviceType,
500
- amount: amount * 100,
500
+ amount: Number((amount * 100).toFixed(2)),
501
501
  quantity: 1,
502
502
  },
503
503
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.351",
3
+ "version": "1.1.353",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [