FSFPAY Payment Gateway for WooCommerce
======================================

WordPress 5.8+
WooCommerce 5.x – 9.x
PHP 7.4 + >

Installation:
1. Upload the folder 'fsfpay-for-woocommerce' to wp-content/plugins/
2. Activate the plugin in WordPress admin -> Plugins
3. Go to WooCommerce -> Settings -> Payments -> FSFPAY and enter API Key & API Secret.
   - Test Endpoint default: https://panel.fsfpay.com/api/sandbox/checkout
   - Live Endpoint default: https://panel.fsfpay.com/api/checkout
   - Webhook (notify) URL used by plugin: https://YOUR_SITE/wp-json/fsfpay/v1/ipn

Notes:
- The plugin performs a POST to {endpoint}/create-session and expects a JSON response:
  { "success": true, "checkout_url": "https://..." }
- After redirecting the buyer to checkout, FSFPAY must call the webhook URL above with a JSON body containing at least:
  { "order_id": <WC order id>, "status": "paid", "transaction_id": "..." }
- If your provider uses a different field names / signature algorithm, adjust the plugin accordingly.
- Ensure your site uses HTTPS and that the webhook URL is reachable from panel.fsfpay.com.

Support:
- If you want, send me the real API request/response examples and signature details; I will adapt the plugin to match exactly.
