Plugin for Shopify

Integrating PayHere with your Shopify shop is super easy with our in-built Plugin for Shopify. You do not have to download any plugin as we have directly integrated Shopify to PayHere. Only thing you have to do is to just link your Shopify shop with your PayHere Account & add our Plugin script to your Shopify shop to start accepting online payments via PayHere.

Please refer the detailed steps or the Video Tutorial below.

1. Create a custom payment method in Shopify
  1. Sign in to your Shopify admin
  2. Go to Settings > Payment providers
  3. Under 'Accept Payments', click the drop down of 'Manual payments' & select 'Create custom payment method'
  4. Enter following as Name of customer payment method PayHere (Visa/MasterCard/Amex/eZcash/mCash/etc)
  5. Enter following as Additional details After clicking 'Complete order', you will be redirected to PayHere Payment Gateway to complete your purchase securely.
  6. Click 'Activate' button
2. Create a private app in Shopify
  1. Go to Shopify Admin > Apps > Manage private apps > Create a new private app
  2. Under Description, enter 'PayHere' as your Private app name
  3. Under Admin API, set 'Orders, transactions and fulfillments' as 'Read and write'
  4. Under Storefront API, put a tick to 'Allow this app to access your storefront...'
  5. Click 'Save' button
  6. Under Admin API, copy credentials 'API key' and 'Password'
3. Create a Shopify shop in PayHere
  1. Sign in to your PayHere account
  2. Go to Settings > Integration Settings > Shopify
  3. Click 'Create Shop' button
  4. Enter your Shopify shop's Name & URL (Ends with myshopify.com doamin, not your custom domain)
  5. Paste the credentials 'API key' and 'Password' you copied from Shopify
  6. Click 'Add Shopify Shop' button
  7. Click the button 'Plugin Script' in front of the shop & copy the script
4. Place the Plugin script in Shopify
  1. Go back to Shopify Admin > Settings > Checkout
  2. Under 'Order processing' > Additional Scripts, paste the 'Plugin Script' copied from PayHere account
  3. Click 'Save' button

That's it. Now you are ready to accept payments of your Shopify shop with PayHere.

Video Tutorial

Plugin for Shopify - PayHere Knowledge Base

Still need help? Get in touch!
Last updated on 9th Jul 2018