Take payments through your MAEF parent site
Hand checkout to the MAEF parent site that takes your payments, test it, refund what it took, and give a share of carts other ways to pay.
In the dashboard
Payments is where your store takes payments through a MAEF parent site, and where you split checkout between ways to pay. MAEF is a WordPress payment plugin in which a parent site takes the payments of its child sites on its own payment account. A payment page makes your store one of those child sites: checkout hands the cart to the parent, the shopper pays on the parent's page, and the parent sends them back to your storefront, where the order is placed once Coritan has checked the parent's signature. Payment routing gives a share of new carts other ways to pay, such as card and PayPal, so that you can try them on real shoppers before you move everyone.
You sell the orders paid through a parent site yourself. Coritan is not their merchant of record: it moves none of their money, issues no invoice or credit note for them and adds nothing to your balance for them.
Before you begin
Section titled Before you begin- You need the Billing role or higher to open Payments. Adding or changing payment pages and payment routing needs the Admin or Owner role.
- Coritan's staff turn payment pages on for a store. Until they do, the Payment pages card says so, and its Open a ticket asks support to turn them on.
- Have the parent site's address and its secret key: the key is at the bottom of the parent's MAEF Parent settings, the same one a WordPress child site enters. The parent can also be your organization's own app or service on Coritan, as Use your own app as the parent describes.
- Your storefront needs its Storefront address set in Settings, because we hand the parent its
/thank-youpage as the return address, and a live parent has sent shoppers to the address it holds for your site instead, so keep the page off until your storefront is served at that address. The storefront must pass what the parent sends on to Coritan, as Take payments through a MAEF parent site describes. - Each region that should offer the page needs Payment page ticked under Ways to pay, in Shipping.
- So that the parent sees your products as it knows them, give each variant a
maef_product_idin its metadata, and amaef_namewhen its name differs, as Name your products for the parent describes.
Add a payment page
Section titled Add a payment page- In the partner dashboard, open your organization. In the sidebar, select Store money under Store, then the Payments tab.
- On the Payment pages card, select New payment page….
- Choose the Mode. Test offers the page to test carts and Live to live carts. A page keeps its mode, so add a second page for the other one. The parent charges real cards in both, so test with small amounts.
- Enter the Name at checkout, up to 80 characters, such as
Credit / Debit Card. Optionally, add a Description of up to 300 characters, which the storefront shows under the name. - Under Cards and wallets shown, tick the marks the storefront shows beside the name. They change nothing at the parent: what it takes is up to the parent.
- Enter the Parent site, such as
https://parent.example.com. It must behttpson a public host, without a?or#part. - Enter the Parent secret. It is stored sealed and never shown again.
- Optionally, list the Currencies the parent takes, such as
USD, EUR. Leave it empty for any currency. - Set how long Late payments match for, from 1 to 168 hours, 72 unless you change it. A shopper can pay on the parent's page hours after leaving checkout, and that payment still pays for the cart within this time.
- Keep Turned on ticked to offer the page as soon as it is added.
- Select Add payment page.
Then open the page and select Test connection, as the next section describes.
A store has up to 10 payment pages. With more than one turned on in a mode, checkout hands each new payment to the next one in turn.
Test the parent site
Section titled Test the parent siteOpen the page from the Payment pages card, or select Details, tests and events… in its menu. Its drawer has two tests:
- Test connection
- Sends the parent the plugin's own connection test, which moves no money. The parent site answered means it checked the secret. The parent site did not take the test says what it answered instead: a refused signature means the secret is wrong.
- Test hand-off…
- Hands the parent a sample cart of one unit of the first variant that has a
maef_product_id, as a real payment would. Nobody is charged, but the parent keeps an unpaid payment for it. The parent took the sample cart names the product and the amount it sent. It also lists the variants with nomaef_product_id, which the parent sees as product 0.
Follow what a parent sent back
Section titled Follow what a parent sent back- Open the page's drawer.
- Read the page's settings at the top. Status says whether it is turned on, and Parent secret whether it is set.
- Under Recent events, choose All, Processed, Unmatched or Ignored. Older loads the events before them.
Each event is a payment the parent sent back as succeeded, failed or held for review, with its amount, the buyer's email and the parent's reference. Open the order opens the order it became or joined.
| Outcome | What it means |
|---|---|
| Processed | Coritan acted on it. A payment that succeeded became the cart's order, a failed one lets the shopper pay again, and a held one keeps checkout waiting for the outcome. |
| Unmatched | The parent took a payment that could not pay for an order, and the event says why: a second payment for a cart already paid, a cart that changed after the payment was started, a payment whose email and total match no payment of your store, or an order of another site of the same parent. Refund it at the parent site. |
| Ignored | It changed nothing, because the payment was already closed or matched nothing to change. |
Refund an order paid through the parent
Section titled Refund an order paid through the parentCoritan moves none of the money the parent takes, so a refund happens in two places. Return the money to the shopper at the parent site, then record the refund on the order, so that the order, what is left to refund and the shopper's refund notice show it.
- Open the order in Orders and select Record refund….
- Choose what to refund, as for any refund.
- Type the amount as the dialog shows it, then select the button that names it, such as
Record refund of $25.00. - Confirm it is you if the dashboard asks.
The refund is recorded at once, and its entry on the timeline reminds you to return the money at the payment page's provider. The shopper is emailed the refund notice, and no credit note is issued. Cancelling the order records its refund in the same way.
Refund payments that paid for no order
Section titled Refund payments that paid for no orderThe parent can take money that cannot pay for an order, as when a shopper pays twice, or pays after the cart changed. Coritan never refunds such a payment on its own. The Payments to refund card lists them, newest first:
- An order that received a second payment shows To refund until its refund is recorded, then Refund recorded. Open the order: its Payment card holds the payment, and Record its refund… records it once you have returned the money.
- A payment with no order is one that no order could take. Refund it at the parent site, where the page's events give its amount, buyer and reference. There is no order to record it on.
The card shows Nothing to refund when there is none.
Change, turn off or delete a page
Section titled Change, turn off or delete a pageEach action is in the menu on the page's row. The page's drawer also has Edit payment page…, Test connection and Test hand-off….
- Edit payment page…
- Change anything but the mode, then select Save payment page. Leave Parent secret empty to keep the saved one, or enter the new one when the parent changed its own.
- Turn off…
- Checkout stops offering the page to new carts. Payments already started on it still complete when the parent sends them back. Select Turn off payment page to confirm, and Turn on to offer the page again.
- Delete payment page…
- Checkout stops offering the page, and what its parent sends back no longer pays for a cart. Type the page's name, then select Delete payment page. A page that a shopper may still pay on, within its late payment time, cannot be deleted: turn it off instead, and delete it once those payments are done.
Caution
Deleting a payment page cannot be undone.
Route payments
Section titled Route paymentsPayment routing gives each new cart one of two routes. Most carts get the default route, and a share you choose gets the rollout route. Each route offers its own ways to pay, so you can keep your payment page on the default route, for example, and try card and PayPal on a tenth of carts.
- On the Payment routing card, tick Route payments.
- Under Ways to pay on each route, put each of Payment page, Card, PayPal and Test payment on the Default route, the Rollout route or Neither route. Each route needs at least one way to pay, and a way to pay is on one route at most.
- Enter the Rollout share: the percentage of new carts given the rollout route, from 0 to 100 with up to two decimals. When Coritan allows shows a ceiling for your store, a higher share counts as the ceiling.
- Optionally, set the limits in the table below.
- Select Save changes.
A cart gets its route the first time checkout lists its ways to pay, and keeps it, even when the shopper signs in. The route follows the shopper rather than the visit: carts of the same signed-in customer, or else with the same email address, get the same route for as long as the share stays the same. Changing the share moves only the carts that have no route yet.
A cart is offered the ways to pay on its route that its region offers, and nothing else. A route never falls back on the other one: when none of its ways to pay can take a cart, such as a payment page that does not take the cart's currency, the cart is offered nothing. The card warns you when a route would leave live carts no way to pay.
| Limit | What it does |
|---|---|
| Rollout orders a day | Once the day's rollout orders reach it, new carts get the default route. Carts already on the rollout route keep it. |
| Rollout revenue a day | The same, in each currency, for what the day's rollout orders add up to. |
| Largest rollout order | A cart whose total is above it, in its currency, is offered the default route's ways to pay while its total stays above it. |
| Always on the rollout route | Email addresses, or *@example.com for a whole domain, one a line and up to 200. A cart with one of them, or a signed-in shopper with one, gets the rollout route whatever the share, the limits or its total. List your team's addresses to try the rollout route before shoppers do. |
A day runs from midnight in the organization's time zone, the Timezone under Invoicing in the organization's settings, or in UTC when none is set. The daily limits count the orders of the cart's mode, and are checked when a cart is given its route. Without routing, every cart is offered every way to pay its region offers.
Pause routing
Section titled Pause routingWhile routing is on, a banner at the top of Payments reads Payment routing is on, with the share and the ways to pay on each route. To stop the rollout at once, select Pause routing…, then Pause routing. Every cart, those on the allow list included, is then offered the default route's ways to pay until you select Resume routing. Each cart keeps the route it was given, so resuming puts it back.
To end routing, untick Route payments and select Save changes.
Read the routing stats
Section titled Read the routing statsThe Routing stats card shows what each route took, day by day. Choose 7 days, 30 days or 90 days, and Live or Test carts.
- Rollout share now is the share that new carts get, with the ceiling applied.
- Rollout orders today and Rollout revenue today count the day's rollout orders, against the daily limits you set.
- The table lists each day, newest first, with each route's orders and revenue. Under the orders, it counts the carts given the route that day, the payments started on it and those that failed.
A cart counts on the day it was given its route, a payment on the day it started and an order on the day it was placed. In Orders, an order paid on the rollout route carries a Rollout badge, Any route filters the list by route, and each order's Details name its Payment route.
Result
Section titled Result- Checkout offers the payment page under its Name at checkout, to carts of its mode and currency in the regions that tick Payment page. A shopper who pays at the parent gets an order whose payment method is Payment page, and whose Seller of record is your business.
- The page's Recent events show each payment its parent sent back, and Payments to refund lists any that paid for no order.
- With routing on, Routing stats counts each route's carts, payments and orders from the day they start.
Troubleshooting
Section titled Troubleshooting- Payments says it is for owners, admins and billing
- Your role is below Billing. Ask an owner to change it.
- Payment pages are not turned on for this store
- Coritan's staff turn payment pages on. Select Open a ticket to ask. Until then, checkout offers no payment page, and none can be added.
- New payment page… is missing
- Only owners and admins see it, once staff have turned payment pages on, and while the store has fewer than 10 pages.
- Checkout does not offer the payment page
- The shopper's region must tick Payment page under Ways to pay, a page that is turned on must be in the cart's mode and take its currency, and the cart must not buy or spend a gift card. With routing on, the cart's route must hold Payment page.
- The parent site is refused
- It must be
https, on a host that resolves to a public address, without a?or#part. The message under the field says which. Coritan's own hosts are refused (URL points at the platform itself), except your organization's own app or service, which must be active, on the defaulthttpsport, and for an app on a custom domain, verified. A test that saysresolves to an address of the platform itselffound a Coritan address that is not your organization's own app or service. See Use your own app as the parent. - A page shows No secret
- It has no parent secret, so checkout cannot offer it. Select Edit payment page… and enter the secret from the parent's MAEF Parent settings.
- Test connection says the parent refused the signature
- The Parent secret is not the parent's current one. Copy it again from the bottom of the parent's MAEF Parent settings, and enter it with Edit payment page….
- Starting a payment fails with a payment provider error
- The parent refused the cart, or did not answer within 20 seconds. Select Test connection and Test hand-off… to see what it answers.
- The shopper paid, but no order appeared
- Coritan has not had the parent's return yet. It arrives when the shopper comes back to your storefront's
/thank-youpage, which must pass it on, as Take payments through a MAEF parent site describes. Checkout waits 15 minutes after the shopper was last sent to the parent, then reopens the cart, and a return that arrives later, within the page's late payment time, still places the order. Read the page's Recent events. - An event is Unmatched
- The parent took a payment that no order could take, and the event says why. Refund it at the parent site. When it belongs to an order, record the refund there with Record its refund….
- Deleting a page says payments may still be paid
- A shopper may still pay on its parent, within its late payment time. Turn it off instead, and delete it once those payments are done.
- A warning says live carts on a route would be offered no way to pay
- The route holds only Test payment, or only Payment page while no page is turned on. Add a way to pay to the route.
- Rollout share now is lower than the share you saved
- Coritan set a ceiling for your store, shown under Coritan allows, and a higher share counts as the ceiling.
Related
Section titled Related- Fulfil, refund and cancel store orders
- Set up regions and shipping
- Take payments through a MAEF parent site
- Route carts between ways to pay
- Create and style hosted checkout pages
With the API
Section titled With the APIGET https://api.coritan.com/api/v1/orgs/{org_slug}/commerce/payment-connectors lists the store's payment pages, which the API calls payment connectors, and POST adds one with its parent_url and parent_secret. Take payments through a MAEF parent site has every route, with the call your storefront makes when the parent sends a shopper back. Payment routing is the store's payment_routing setting, which PATCH /commerce/store changes, and GET /commerce/payment-routing/stats answers the stats, as Route carts between ways to pay describes.
curl "https://api.coritan.com/api/v1/orgs/acme/commerce/payment-connectors" \
-H "Authorization: Bearer $CORITAN_TOKEN"