Skip to content

Commit

Permalink
added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisZerbib committed Jun 2, 2024
1 parent c61511f commit 03ac7b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/PayWithCrypto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,15 @@ export function BuyWithCrypto({
onClick={async () => {
onClick();
if (currency === "TON") {
/// TODO If ok then empty the cart and send the payment snackbar
sender.send({
to: Address.parse(tonRecipient),
value: toNano(amount),
});

// show snackbar

// empty the cart
} else if (currency === "USDT") {
// Handle USDT payment
// Add your logic for USDT payment here
Expand Down

0 comments on commit 03ac7b9

Please sign in to comment.