Merx

Set Up

Order Page Model

If you installed Merx with git submodule or composer you have to create your own Order Page Model. Create site/models/order.php and extend the OrderPageAbstract. Afterwards you are ready to use the Order Page Model for the checkout validation

site/models/order.php

class OrderPage extends OrderPageAbstract {};

Options

If you want to use Stripe and/or PayPal you need to set the respective keys. Read the Stripe and PayPal documentation on how to get the keys.

site/config/config.php

return [
  'ww.merx.stripe.test.publishable_key' => 'pk_test_xxx…',
  'ww.merx.stripe.test.secret_key' => 'sk_test_xxx…',
  'ww.merx.stripe.live.publishable_key' => 'pk_live_xxx…',
  'ww.merx.stripe.live.secret_key' => 'sk_live_xxx…',
  'ww.merx.paypal.sandbox.clientID' => 'xxx…',
  'ww.merx.paypal.sandbox.secret' => 'xxx…',
  'ww.merx.paypal.live.clientID' => 'xxx…',
  'ww.merx.paypal.live.secret' => 'xxx…',
];