YardPay for Ecwid
Accept payments on your Ecwid store by installing YardPay from the Ecwid App Market.
Installation
- In your Ecwid control panel, go to Apps → App Market
- Search for "YardPay" and click Install
- Authorize the app to access your store (OAuth consent screen)
- Navigate to Payment → Payment methods and enable YardPay
OAuth scopes
YardPay requests read_orders,update_orders, andread_payments. These are required to sync payment status back to the Ecwid order.
How It Works
- Customer clicks Place Order in Ecwid checkout
- Ecwid POSTs the order payload to
/api/v1/integrations/ecwid/payment - YardPay creates a checkout session and redirects the customer to the hosted payment page
- After payment, the customer returns to the Ecwid order confirmation page
- YardPay calls the Ecwid REST API to update the order to Paid or Failed
Endpoints
| Endpoint | Purpose |
|---|---|
| GET /api/v1/integrations/ecwid/install | Starts the OAuth install flow from the Ecwid App Market. |
| GET /api/v1/integrations/ecwid/callback | OAuth callback. Exchanges the authorization code for an access token and links the store to your YardPay merchant. |
| POST /api/v1/integrations/ecwid/payment | Receives the order from Ecwid, creates a checkout session, and redirects to the hosted page. |
| POST /api/v1/integrations/ecwid/status | Webhook receiver that syncs the final payment result back to the Ecwid order. |
Store Linking
Each installed Ecwid store is mapped to a YardPay merchant by storeId. The OAuth callback stores the Ecwid access token so YardPaycan update orders on the merchant's behalf.
Order status sync
PUT https://app.ecwid.com/api/v3/{storeId}/orders/{orderId}
Authorization: Bearer {ecwid_access_token}
Content-Type: application/json
{
"paymentStatus": "PAID",
"externalTransactionId": "ch_..."
}Requirements
- Active Ecwid store on a plan that allows custom payment apps
- YardPay merchant account with production API keys
- Public HTTPS URL for the YardPay gateway (required by Ecwid OAuth)