Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支付完成时,校验是否包含 tx #7

Open
bestony opened this issue Nov 13, 2018 · 2 comments
Open

支付完成时,校验是否包含 tx #7

bestony opened this issue Nov 13, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@bestony
Copy link
Contributor

bestony commented Nov 13, 2018

相关代码

https://github.com/inKerk/woocommerce-erc20-payment-gateway/blob/962a303544e6ec9004d4c984b2077855f9987d09/woocommerce-erc20-payment-gateway.php#L74

@bestony bestony added the bug Something isn't working label Nov 13, 2018
@wxy
Copy link

wxy commented Nov 13, 2018

鉴于无实时对以太坊的交易监测,所以可以考虑:

  1. 后台要检查前台绕过检查,恶意标注支付完成的可能性
  2. 在打开订单页时,如果已经有 tx,并且该订单没有标识为已经确认收到支付,就自动触发一个对 etherscan 页面的抓取,判断是否支付成功。

bestony added a commit that referenced this issue Nov 13, 2018
@wxy
Copy link

wxy commented Dec 18, 2018

可对接 https://amberdata.io/home 的 API 来查询交易完成状态。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants