MobilePay Checkout
Guide to setting up MobilePay Checkout as a payment option in your Shoporama online shop.
MobilePay Checkout allows your customers to pay quickly with MobilePay - without filling in address details manually. The integration works via QuickPay.
Prerequisites
- A QuickPay account with MobilePay Checkout enabled
- A payment gateway set up in Shoporama with "mobilepay" as payment method
1. enable MobilePay Checkout in Shoporama
- Go to Payment gateways in admin
- Create a new gateway or edit an existing one
- Make sure that "mobilepay" is listed under payment methods
- Check the box "Enable MobilePay Checkout"
- Click Save
2. Add MobilePay button in your theme
You need to add a button in your basket template(basket.html) that sends the customer to MobilePay Checkout. The button must submit the invoice_address_selection variable via POST to /basket:
<input type="submit" name="invoice_address_selection" value="Pay with MobilePay Checkout" class="btn btn-primary" />
MobilePay Checkout Tip
You can check if your shop supports MobilePay Checkout with an if statement: <{if $webshop->hasInvoiceAddressSelection()}>>. The button will then only appear when it is enabled.
3. MobilePay from other sites (optional)
You can also allow customers to go directly to MobilePay Checkout from pages other than the cart, such as the product page. Create a form that POSTs to /basket:
<form action="/basket" method="post"> <input type="submit" name="invoice_address_selection" value="Quick payment with MobilePay" /> </form>
Important to know
Please note that
MobilePay Checkout fundamentally changes how order information is collected. Shoporama only receives the customer's address information after the payment has been completed - and the information cannot be verified beforehand. Therefore, pay extra attention to the validity of your customers' information.
Do you need help with the setup? Contact us at support@shoporama.dk.