'I want to enable crypto payment on my site [closed]
I want to enable crypto payment by giving the customer an wallet address and the send the amount of crypto to my wallet lets say 10USDT but I want to automaticly know when I recive the transaction without me manualy confirm it, so I can auto deliver the product to the customer I'm using react so I would be so happy if someone can give me an idea of how to do that because I search everywhere but i can not find anything
Please any one have idea how to do this share your idea with me Thanks
const[paymentConfirmed,setPaymentConfirmed] = useState(false)
//i want somthing to fetch that the crypto payment received successful
//then i will setPaymentConfirmed to true
if(paymentConfirmed){
//will deliver the order to the customer
}
Solution 1:[1]
You need to get a response from the blockchain that you use, I think you can use any blockchain explorer but if you want the easy way you may using some of the cryptocurrency gateways like coinbase or coingate, they are working right
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | MohammedAlsahli |