Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 568 Bytes

README.md

File metadata and controls

23 lines (21 loc) · 568 Bytes

alchemy-pay-poc

To run this, follow the terminal commands:

npm init -y
npm install express dotenv web3
node src/server.js

Then in another window, run:

curl -X POST http://localhost:3000/webhook -H "Content-Type: application/json" -d '{
  "appId": "testAppId",
  "orderNo": "testOrderNo",
  "crypto": "DIMO",
  "network": "polygon",
  "address": "0xTestWalletAddress",
  "status": "PAY_SUCCESS",
  "txHash": "0xFakeTxHash1234567890abcdef",
  "newSignature": "fakeSignatureForTesting"
}'

This is just an example payload for testing purposes