These are the examples of how to easily accept payments in TON with ton-payment-tracker
pachage
https://github.com/nns2009/ton-payment-tracker
The most basic example I coded live while giving presentation to show how simple it is to use ton-payment-tracker
Very similar but slightly different, also uses testnet
Proper example of how to incorporate payments to make sure that payments made during service/tracker down-time are not "lost" (not-counted/skipped).
Processing payments and updating trackingState
with nextTrackingState
should be a single atomic operation (transaction) to make sure each payment is counted once and exactly once.
https://www.canva.com/design/DAFN6DbaJ2s/RWP3cA0nW96NIjr3KVsibg/view
Telegram: @nns2009
YouTube: Awesome GameDev
https://codeforces.com/profile/nns2009
https://vk.com/nns2009
https://facebook.com/nns2009