@jetthai/cuora 1.1.180 → 1.1.181

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.181](https://github.com/jetthai/cuora-module/compare/v1.1.180...v1.1.181) (2023-09-20)
6
+
5
7
  ### [1.1.180](https://github.com/jetthai/cuora-module/compare/v1.1.179...v1.1.180) (2023-09-19)
6
8
 
7
9
  ### [1.1.179](https://github.com/jetthai/cuora-module/compare/v1.1.178...v1.1.179) (2023-09-19)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.180",
3
+ "version": "1.1.181",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -298,8 +298,8 @@ export default function (request) {
298
298
  return selectedCrypto && selectedNetwork && amount && minimum <= +amount && +amount <= maximum
299
299
  },
300
300
  isSubmittable: (context, event) => {
301
- const { selectedCrypto, selectedNetwork, amount } = context
302
- return selectedCrypto && selectedNetwork && amount
301
+ const { selectedCrypto, selectedNetwork, amount, depositTime, receipt } = context
302
+ return selectedCrypto && selectedNetwork && amount && depositTime && receipt
303
303
  },
304
304
  isProcessing: (context, event) => {
305
305
  return context.processing
@@ -321,11 +321,11 @@ export default function (request) {
321
321
  )
322
322
  },
323
323
  submitDeposit: async (context, event) => {
324
- const { selectedCrypto, selectedNetwork, calculation, depositTime, receipt, amount } = context
324
+ const { selectedCrypto, selectedNetwork, depositTime, receipt, amount } = context
325
325
  return await request.send(
326
326
  payment.submitDepositTransactionCrypto({
327
327
  method: selectedCrypto.method,
328
- amount: calculation.actualAmount,
328
+ amount: amount,
329
329
  cryptoCurrency: selectedCrypto.channel,
330
330
  cryptoNetwork: selectedNetwork.value,
331
331
  depositTime,
@@ -269,11 +269,11 @@ export default function (request) {
269
269
  )
270
270
  },
271
271
  submitDeposit: async (context, event) => {
272
- const { selectedCrypto, selectedNetwork, calculation } = context
272
+ const { selectedCrypto, selectedNetwork, amount } = context
273
273
  return await request.send(
274
274
  payment.submitDepositTransactionCrypto({
275
275
  method: selectedCrypto.method,
276
- amount: calculation.actualAmount,
276
+ amount: amount,
277
277
  cryptoCurrency: selectedCrypto.channel,
278
278
  cryptoNetwork: selectedNetwork.value,
279
279
  })