How to set up ViaBill installment payments in your store
Guide to setting up ViaBill as a payment option in your Shoporama store. Learn how to add the ViaBill script, show the monthly price on the product page, and create ViaBill as a payment gateway through Quickpay, PensoPay, Flatpay, OnPay, or ePay.
To offer ViaBill as a payment method, you need to complete three steps. This guide walks you through them.
Tip: If you use Montana, Delaware, or DelawareDK, you can skip steps 1 and 2: you turn on the ViaBill price on the product page in the theme settings under "Integrations" without editing any code. You just need to enter your ViaBill Shop ID. In Alaska2, you paste the code from ViaBill into the "ViaBill code" theme setting. You still need to complete step 3, because that is where ViaBill becomes a payment method at checkout.
1. Add the ViaBill code
ViaBill gives you a unique code that looks something like this:
<script>
(function(){
var o = document.createElement('script');
o.type = 'text/javascript';
o.async = true;
o.src = 'https://app.ibill.dk:443/psp/web/webshop/pricetag/YOUR_KEY';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(o,s);
})();
</script>
This script takes your product price and calculates the monthly price through ViaBill. The price is only shown on the product page, so we recommend that you only add the code there. That way, the ViaBill script does not slow down your other pages unnecessarily.
Note: You cannot copy the code above as it is. You need your own unique code from ViaBill. Contact your design partner to have the code added correctly.
2. Add a div to show the ViaBill price
Where you want the ViaBill price to appear on the product page, add a div. You have two options:
Graphic version:
<div class="ViaBill_pricetag_product" price="<{$product->getRealPrice()}>"></div>
Plain text version:
<div class="ViaBill_pricetag_list" price="<{$product->getRealPrice()}>"></div>
You can copy the code above directly into your product template.
3. Add ViaBill as a payment gateway
How you do this depends on which payment provider you use.
Quickpay, PensoPay, and Flatpay
- Create a new payment gateway in Shoporama
- Set it up with the same keys as your other gateway. See how to set up Quickpay, PensoPay, or Flatpay
- Enter viabill in the "Payment methods" field (where it would otherwise say creditcard or mobilepay). If you already have other methods, add ,viabill after the existing ones (for example creditcard,mobilepay,viabill)
- Click "Save and close"

If you use Quickpay, you then need to make sure that ViaBill is enabled in Quickpay. Go to "Acquirers", select ViaBill, paste the API key from ViaBill, and check "Enable ViaBill". If you use PensoPay or Flatpay, check with them that ViaBill is added to your agreement.
OnPay
If you use OnPay, create a payment gateway in Shoporama and connect it to your OnPay account, just as you did when you set up your other OnPay gateway. Choose "ViaBill" under "Payment method", so ViaBill appears as a separate payment method at checkout. Then click "Save and close". ViaBill must also be added to your agreement with OnPay.
ePay
If you use ePay, you do not need to do anything in ePay yourself. Create a payment gateway in Shoporama, and set it up like your other ePay gateway, but choose "ViaBill" in the "Payment type" dropdown. Then click "Save and close".
Remember to test ViaBill in your store once the setup is complete.
Related articles
Set up ePay as your payment gateway
A step-by-step guide to setting up ePay as a payment gateway in your Shoporama store. Enter your Merchant ID, MD5 secret, and capture password, and...
Set up the Anyday integration for buy now, pay later
How to add Anyday buy now, pay later to your Shoporama store, including the script, the price tag, and the setup in your payment gateway.
Set up Klarna as a payment method
Learn how to set up Klarna as a payment method in your Shoporama store through your payment gateway, so customers can pay now, pay later, or pay in...
Related features
Buy now, pay later (BNPL)
BNPL lets customers buy now and pay later. Learn about Klarna, Anyday, ViaBill, and other BNPL providers, and what buy now, pay later costs your...
ViaBill
Offer ViaBill installment payments in your Shoporama store. See how to set up the price tag and payment method through QuickPay, PensoPay, or ePay.
ViaBill: installment payments and buy now, pay later
Offer ViaBill installment payments in your store. The customer pays ViaBill in installments, and you turn it on through PensoPay, ePay, OnPay, or...
Accept ViaBill in your online store
See how to turn on ViaBill in your payment gateway in Shoporama, and how to show the monthly price on the product page in several of the built-in...
Partial payment (deposit and balance)
Partial payment means the customer pays for a purchase in parts. See how BNPL installments differ from a deposit with a later balance payment in...
12 payment gateways for your online store
Choose from OnPay, Quickpay, Stripe, Mollie, Nets Easy, ePay, and more. Automatic capture, country restrictions, and buy now, pay later with Klarna.