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

支付成功,但网页显示待支付 #3

Closed
BBQFIL opened this issue Mar 31, 2022 · 3 comments
Closed

支付成功,但网页显示待支付 #3

BBQFIL opened this issue Mar 31, 2022 · 3 comments

Comments

@BBQFIL
Copy link

BBQFIL commented Mar 31, 2022

require('dotenv').config('./.env')
const fs = require('fs').promises
const { mcsClient } = require('mcs-client')
const client = new mcsClient({
  privateKey: process.env.PRIVATE_KEY,
  rpcUrl: process.env.RPC_URL,
})

async function main() {
  const payloadCid = 'bafykbzacXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
  const tx = await client.makePayment(payloadCid, '0.001')
  console.log(tx.transactionHash)
}
main()

运行后 支付成功并输出tx_hash ,可通过浏览器查到交易详情。
但网页依旧显示未支付,且无法手动支付。

@rykci
Copy link
Collaborator

rykci commented Mar 31, 2022

Can you send me tx_hash, or payload_cid and I can take a look? Make sure the payload_cid was copied correctly!

@flyworker
Copy link
Contributor

https://mumbai.polygonscan.com/tx/0xfbe3b0285c98895cfcd1a2857e75fd523d718144b62e13ee53b9a400ba6a26ff
bafykbzacedcr5mn4u3rfpnomyar6wwaji7434mx24mszrmxwdq6taf2axlgi6

@rykci
Copy link
Collaborator

rykci commented Apr 1, 2022

This tx hash is a mint transaction not a payment transaction

@BBQFIL BBQFIL closed this as completed Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants