Set up ViaBill on Shoporama
Guide to setting up ViaBill as a payment option on your Shoporama webshop.
In order to use ViaBill as a payment method, you need to go through three steps. We guide you through them here. To insert code, you need to get in touch with your design partner.
Insert the ViaBill code
From ViaBill, you get 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/KPKQkjCMehk%3D';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(o,s);})();</script>
This is the code that takes your price and calculates the monthly price through ViaBill. This price is only shown on your product page, so we recommend that you only insert the code on your product page. This avoids the ViaBill script slowing down your other pages unnecessarily.
Note: You cannot copy the code here. You need a unique code from ViaBill.
Add an extra div to display the ViaBill price
Wherever you want ViaBill's price to be displayed, you need to add a div. You have two options. Either a graphical version or a plain text version. If you prefer the graphical one, your div should look like this:
<div class="ViaBill_pricetag_product" price="<{$product->getRealPrice()}>"></div>
The above code will look like this:
If you just want plain text, it should look like this.
<div class="ViaBill_pricetag_list" price="<{$product->getRealPrice()}>"></div>
The above code will look like this
You can simply copy and paste the above divs.
Add ViaBill as a payment gateway in Shoporama (Quickpay)
If you want the user to choose the payment gateway in your shop, you need to create ViaBill under payment gateways in Shoporama. If you use Quickpay, you need to do the following:
Create a new payment gateway in Shoporama. Set this up like your other Quickpay methods (with API key and private key), but simply enter "viabill" in payment methods (where it says creditcard or mobilepay). If you only have one payment method in your shop and let the user choose the payment gateway in the Quickpay payment window, simply add "viabill" to your other methods (it could say "creditcard, mobilepay"). Then click "Save".
Next, make sure that ViaBill is activated in Quickpay. Go to Acquires, select ViaBill, insert the API key you received from ViaBill and check "Enable ViaBill". Then you're good to go.
Add ViaBill as a payment gateway in Shoporama (ePay)
If you use ePay, you do not need to do anything in ePay. You need to create a payment method called ViaBill in Shoporama. You set it up just like your other ePay, but in the dropdown "Payment Type" you select ViaBill. Then click Save.
Remember to test ViaBill in your shop after it is set up.