Barion for Shopify: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 40: Line 40:


==== Adding the integration code to Shopify Admin interface ====
==== Adding the integration code to Shopify Admin interface ====
On the Shopify Admin interface please go to "Settings" --> "Checkout" menu and add the followingcode to the section "Additional scripts":
'''IMPORTANT''': The steps until now is the same for test shops, and for production shops, but this code snippet is different.
'''TEST''' script:
<code><script src="https://shopify.test.barion.com/js/barion/barion.js"></script>
<script>Barion.init({
orderId: {{ order.id }},
domain: '{{shop.permanent_domain}}',
gateway: '{{order.gateway}}',
orderStatus: '{{order.financial_status}}',
sandboxMode: true
})</script></code>
'''PRODUCTION''' script:
<code><script src="https://shopify.barion.com/js/barion/barion.js"></script>
<script>Barion.init({
orderId: {{ order.id }},
domain: '{{shop.permanent_domain}}',
gateway: '{{order.gateway}}',
orderStatus: '{{order.financial_status}}'
})</script></code>


==== Adding a payment method on Shopify Admin interface ====
==== Adding a payment method on Shopify Admin interface ====

Revision as of 15:01, 4 November 2020

Barion for Shopify

New to Shopify? Upgrade your business with a fully functional webshop in no time

- Bring your business online: Create an e-commerce website backed by powerful tools that help you find customers, drive sales, and manage your day-to-day

- Make the most out of your online business: Powerful tools already integrated into Shopify shops like insights, order management, and many integrated payment solutions

- Online payment with Barion: Make the most out of your online business by providing online payment for customers. Barion Smart Gateway has you covered

- Payments made international: Enjoy the benefits of Barion's many features. For example multiple languages and currencies, card payments, wire transfer payment, and mobile payments


Have a Shopify shop? Downgrade your payment costs with Barion

- Join Barion and integrate our safe, secure and cost-effective solution with your shop in a few steps and start paying less fees.


Onboarding steps

Register » Create a Shop » Get verified » Integrate Barion for Shopify

  1. Register a Barion account for your Business
  2. Create a Shop
  3. Get verified, The documents you need 

Connect your Shopify shop with Barion

How to create Shopify keys

In the Shopify admin interface please go to "Apps" and click to "Manage private apps" option: (https://YOUR_SHOPIFY_SUBDOMAIN.myshopify.com/admin/apps/private)

Click to "Create a new private app" button and give a name and an e-mail address you wish to use. Choose "Show inactive Admin Api permission" and set the option "Read and write", then click to "Save" button.

When the private app has been created successfully, API key and Password (from Admin API) have to be provided on the interface of Barion. To have the password presented, please click to "Show".

Filling Barion details out

To get your Barion Shop's Secret key (POSKey), go to your Barion shops click on the "Actions" and Details to find your key. Copy it to the Shopify plugins Settings page, set there the primary currency and the shops language and hit Save

Adding the integration code to Shopify Admin interface

On the Shopify Admin interface please go to "Settings" --> "Checkout" menu and add the followingcode to the section "Additional scripts":

IMPORTANT: The steps until now is the same for test shops, and for production shops, but this code snippet is different.

TEST script: <script src="https://shopify.test.barion.com/js/barion/barion.js"></script> <script>Barion.init({ orderId: Template:Order.id, domain: 'Template:Shop.permanent domain', gateway: 'Template:Order.gateway', orderStatus: 'Template:Order.financial status', sandboxMode: true })</script>


PRODUCTION script: <script src="https://shopify.barion.com/js/barion/barion.js"></script> <script>Barion.init({ orderId: Template:Order.id, domain: 'Template:Shop.permanent domain', gateway: 'Template:Order.gateway', orderStatus: 'Template:Order.financial status' })</script>

Adding a payment method on Shopify Admin interface