shopifyPayRam Shopify Plugin

This guide walks you through connecting PayRam as a payment method on your Shopify store. It has three parts: setting up the plugin server, configuring it in Shopify, and testing your first payment.

Part A: Server Setup (Terminal)

1. Get the installation script

Go to the PayRam GitHub repository and open the Shopify repo. Copy the bash installation link provided there.

2. Run the script in terminal

This can be run on any server. It does not need to be the same server where your main PayRam instance is installed.

The script will walk you through setup. You can accept all default values unless you have specific configuration needs.

3. Configure HTTPS on port 2798

Once installed, you need to expose port 2798 via HTTPS. Use either:

  • An nginx reverse proxy, or

  • A direct HTTPS configuration on your server

4. Log in and create your app

Open the login page URL shown at the end of the script.

Sign in and authenticate with your Shopify credentials.

Then run the app creation step in the terminal when prompted.

5. Add your Shopify store URL

When asked, enter your Shopify store's URL.

6. Choose a database

You can either connect an external database or use the default SQLite option, which works fine for most setups.

7. Install the app to your Shopify dashboard

In the terminal, follow the URL to install the PayRam app onto your Shopify store.

It will open up in your browser, select Install to continue.

Inside the app settings, enter the following:

  • Base URL - the URL of your PayRam plugin server (from Part A) along with the port number

    • For eg. https://payram.yourdomain.com:8443

  • Project API Key - found in your PayRam dashboard (access herearrow-up-right)

  • Payment Method Name - enter a custom name for the label to be displayed to customers

Once done, click Save Settings.

8. Test the connection

Click Test PayRam Connection to test the connection. A successful response returns an HTTP 200 status, which confirms the connection is working correctly.


Part B: Shopify Dashboard Configuration

1. Add PayRam as a manual payment method

Go to: Settings > Payments

Select Manual Payment Methods and from the dropdown, select Create custom payment method and set it up as PayRam.

2. Customize your checkout page

From the Shopify sidebar, select Checkout > Customize. This is where customers will see the PayRam payment option.

The customer flow works like this:

Customer selects Pay via PayRam at checkout.

They complete the payment on the Thank You page after placing the order

Approve the app and add it to the Thank You page so the payment widget appears there.


Part C: Test Payment

Once everything is configured, run a test to confirm the full flow works end to end.

  1. Visit your Shopify store

  2. Add any item to your cart

  3. Proceed to checkout

  4. Select Pay via PayRam

  5. Click Pay Now

  6. On the Thank You page, enter your email address

  7. A PayRam payment link will be generated

  8. Complete the payment using the link

If the payment goes through successfully, your integration is live and ready to use.

Last updated