Merx

Set Up

If you downloaded the Plainkit you can start right away. Add your own products and style and you're ready to become a millionaire.

Order Page Model

If you installed Merx with git submodule or composer you have to create your own Order Page Model. Just 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.php

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