wavesnode / gateway-for-woocommerce

Wordpress woocommerce plugin for supporting Waves or any other token on the Waves platform, examples: https://shop.wavesnode.net and https://services.wavesnode.net
11 stars 27 forks source link

zero 24h_vwap creates a zero payment #4

Open tubbynl opened 6 years ago

tubbynl commented 6 years ago

http://marketdata.wavesplatform.com/api/ticker/F5BU5eAeUTRWNKy2dmD32Sg2fSrckgYgJ9ET6BrZLuzv/waves

{
symbol: "",
amountAssetID: "F5BU5eAeUTRWNKy2dmD32Sg2fSrckgYgJ9ET6BrZLuzv",
amountAssetName: "Escudo",
amountAssetDecimals: 8,
amountAssetTotalSupply: "100000000.00000000",
amountAssetMaxSupply: "100000000.00000000",
amountAssetCirculatingSupply: "0.00000000",
priceAssetID: "WAVES",
priceAssetName: "WAVES",
priceAssetDecimals: 8,
priceAssetTotalSupply: "100000000.00000000",
priceAssetMaxSupply: "100000000.00000000",
priceAssetCirculatingSupply: "100000000.00000000",
24h_open: "0.00000000",
24h_high: "0.00000000",
24h_low: "0.00000000",
24h_close: "0.00000000",
24h_vwap: "0.00000000",
24h_volume: "0.00000000",
24h_priceVolume: "0.00000000",
timestamp: 1513118583285
}
tubbynl commented 6 years ago

probably it makes sense to disable the checkout completely if this is the case, perhaps woocommerce has something for this