MPLEX Pay for Ecwid
Accept payments on your Ecwid store by installing MPLEX Pay from the Ecwid App Market.
Installation
- In your Ecwid control panel, go to Apps → App Market
- Search for "MPLEX Pay" and click Install
- Authorize the app to access your store (OAuth consent screen)
- Navigate to Payment → Payment methods and enable MPLEX Pay
OAuth scopes
MPLEX Pay 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
/v1/integrations/ecwid/payment - MPLEX Pay creates a checkout session and redirects the customer to the hosted payment page
- After payment, the customer returns to the Ecwid order confirmation page
- MPLEX Pay calls the Ecwid REST API to update the order to Paid or Failed
Endpoints
| Endpoint | Purpose |
|---|---|
| GET /v1/integrations/ecwid/install | Starts the OAuth install flow from the Ecwid App Market. |
| GET /v1/integrations/ecwid/callback | OAuth callback. Exchanges the authorization code for an access token and links the store to your MPLEX Pay merchant. |
| POST /v1/integrations/ecwid/payment | Receives the order from Ecwid, creates a checkout session, and redirects to the hosted page. |
| POST /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 MPLEX Pay merchant by storeId. The OAuth callback stores the Ecwid access token so MPLEX Paycan 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
- MPLEX Pay merchant account with production API keys
- Public HTTPS URL for the MPLEX Pay gateway (required by Ecwid OAuth)
