Cryptomo for Magento 2 (2.4.x)
==============================

Install
1. Copy the "app" folder into your Magento root (so you get app/code/Cryptomo/Payment).
2. From the Magento root run:
     php bin/magento module:enable Cryptomo_Payment
     php bin/magento setup:upgrade
     php bin/magento setup:di:compile          (production mode only)
     php bin/magento setup:static-content:deploy   (production mode only)
     php bin/magento cache:flush
3. Admin → Stores → Configuration → Sales → Payment Methods → "Cryptomo — crypto payments":
   enable it and paste your Cryptomo URL, public key, secret key and webhook secret
   (Cryptomo dashboard → Stores → your store).
4. In the Cryptomo dashboard set the store's Webhook URL to:
     https://YOUR-MAGENTO-SITE/cryptomo/webhook

How it works
- The customer chooses "Pay with crypto" and places the order (status: Pending Payment).
- They are sent to the Cryptomo checkout to pay.
- When the payment is confirmed, the webhook creates the Magento invoice and moves the order to Processing.
- Expired invoices cancel the order.
