=== Caravel Pay for Easy Digital Downloads ===
Tags: payments, card, apple pay, google pay, usdc
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept card, Apple Pay, Google Pay and USDC in Easy Digital Downloads. Payouts go to your own Polygon wallet, minus a flat 2%.

== Description ==

Buyers pay on a hosted checkout by card, Apple Pay, Google Pay or directly in USDC, USDC.e or POL on Polygon. Each payment is sent to your payout wallet automatically, minus 2%, in the token the buyer paid with (card payments arrive as USDC). There is no account to create: paste your wallet and save.

Requires Easy Digital Downloads 3.x and a store currency of US dollars.

= External service =

This plugin sends order data needed for payment (order reference, amount, buyer email, return and webhook URLs) to the Caravel Pay API at https://api.caravelpay.app when a buyer pays, and your site address, payout wallet and optional contact email when you save the settings. Caravel Pay terms of service: https://caravelpay.app/terms
Caravel Pay privacy policy: https://caravelpay.app/privacy

== Installation ==

1. Upload caravel-pay-edd.zip under Plugins > Add New Plugin > Upload Plugin and activate it.
2. Go to Downloads > Settings > Payments > Caravel Pay, paste your Polygon payout wallet and save. The notice confirms "Caravel Pay is connected".
3. Enable Caravel Pay under Downloads > Settings > Payments > General > Active Gateways.

== Frequently Asked Questions ==

= How do orders update? =

Paid: Complete, with the payout transaction hash as the transaction id. Underpaid or needs review: On Hold (or Pending) with a note. Expired: Failed with a note; a payment found later still completes it. The status always comes from a signed request to the Caravel Pay API, never from the webhook body alone.

= Switching from PayGate? =

If PayGate's EDD gateway is configured, the Caravel Pay settings show the wallet it pays out to, so you can paste the same one. Nothing is copied or changed automatically, and both gateways can stay active while you switch.

== Changelog ==

= 1.0.0 =
* First release.
