Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.paybridgenp.com/llms.txt

Use this file to discover all available pages before exploring further.

Installing PayBridgeNP on your Shopify store is a six-step process. Plan for about 10 minutes end to end, mostly clicking through Shopify’s admin. No code changes on your site.

Before you start

You need:
  1. A Shopify store - any plan, dev store or live store, as long as its currency is NPR
  2. A PayBridgeNP API key - get one from the PayBridgeNP dashboard under Settings → API Keys. Use sk_test_… to test, sk_live_… when you’re ready to take real payments
  3. A way to receive SMS on your phone - the reminder worker sends test messages during setup

Step 1 - Install the app

Go to paybridgenp.com/integrations/shopify, type your shop domain (yourstore.myshopify.com) in the install form, and click Install. You’ll be redirected to Shopify’s standard install consent screen, which lists the permissions the app needs - reading and updating orders, creating draft orders, reading customer contact info (to send payment-link SMS and email), and reading product info. Approve to continue. Click Install app. Shopify redirects you to the embedded PayBridgeNP settings page inside your admin.

Step 2 - Create a Shopify manual payment method

This is the step most merchants miss. Until you do this, no order will ever flow through PayBridgeNP.
  1. In your Shopify admin, go to Settings → Payments
  2. Scroll to Manual payment methods (under “Additional payment methods”)
  3. Click Add manual payment method
  4. At the bottom of the dropdown, pick Create custom payment method
  5. Fill in the form:
    FieldValue
    Custom payment method namePayBridgeNP (this exact string - you’ll paste it into the app settings in the next step)
    Additional detailsPay with eSewa, Khalti, or Fonepay. You'll be redirected to complete your payment.
    Payment instructionsAfter placing your order, you'll receive a secure payment link via SMS, email, and on the order confirmation page.
  6. Click Activate
Your customers will now see PayBridgeNP as a payment option at checkout.
The Custom payment method name you enter here must match exactly what you paste into the app’s Manual method handle field in Step 4. The match is case-insensitive, but any typo or extra whitespace will cause orders to be silently ignored.

Step 3 - Paste your PayBridgeNP API key

Back in the embedded app (still in your Shopify admin, under Apps → PayBridgeNP → Settings):
The Settings page showing a successful PayBridgeNP connection with a masked API key, a Test mode toggle, and instructions for creating a custom payment method in Shopify admin
  1. Find the PayBridgeNP API key field
  2. Paste your sk_test_… or sk_live_… key
  3. Click Save
The app validates the key against your PayBridgeNP account and switches into Sandbox mode by default - toggle it off when you’re ready to take real payments. If the key is invalid, you’ll see a red banner with the specific error from PayBridgeNP. Common causes when the key is rejected:
  • Trailing whitespace on the key
  • Wrong environment (you pasted a live key but your PayBridgeNP project is in sandbox, or vice versa)
  • Key was revoked or rotated in the PayBridgeNP dashboard

Step 4 - Paste the manual method handle

On the same settings page, find the Manual method handle field and paste exactly the same string you used for the Shopify payment method name in Step 2 (e.g. PayBridgeNP). Click Save. This tells the app which Shopify payment method to intercept. When an order comes in with a different payment method (cash on delivery, bank transfer, etc.), it’s left alone.

Other settings on the same page

Below the connection section you’ll see toggles for customer notifications and alternative flows. You can leave these at their defaults for the first test order.
The lower half of the Settings page showing Customer notifications toggles for SMS and email reminders, and Alternative flows toggles for Buy with PayBridgeNP and the Draft order send-link action
  • Customer notifications - SMS and email reminders are on by default. They fire when a customer places an order but doesn’t pay within the configured window.
  • Alternative flows - off by default. See the alternative flows section of How it works for what these do.

Step 5 - Add the PayBridgeNP redirect block to your Thank-you page

Shopify ships a Checkout UI Extension with the app, but it does not let payment apps drop a block into your checkout for you. You have to add it once, by hand. Until you do, customers will not see the “Continue to PayBridgeNP” button on the thank-you page (only the SMS / email backup links).
  1. In Shopify admin, open Settings → Checkout.
  2. On your active checkout profile, click Customize.
  3. In the left nav of the editor, click Thank you.
  4. Click Add block and pick PayBridgeNP redirect.
  5. Click Save. There is no per-block config - the app URL is baked in.
Optional: while you’re in the editor, click Order status in the left nav and add PayBridgeNP Pay Now (customer account). That gives returning buyers a Pay button on the order page inside their Shopify account, so they can finish payment days later without needing the SMS link.
Shopify checkout editor on the Thank you page, with the PayBridgeNP redirect block rendering Pay with eSewa, Pay with Khalti, Pay with Fonepay (each with a provider logo), and a More payment options fallback link

Step 6 - Place a test order

Go to your storefront, add any product to cart, proceed to checkout, and at the payment step pick PayBridgeNP. Click Complete order.

What should happen

  1. Shopify creates the order in Pending state and redirects the customer to the Thank-you page
  2. The app embeds a row of Pay with eSewa / Khalti / Fonepay buttons (one per wallet you have enabled), plus a More payment options → fallback link
  3. The same block appears later in the customer’s Order Status page inside their Shopify account, so they can come back and finish if they close the tab
  4. The customer also receives an SMS and email with the same payment link, as backup
  5. Clicking a wallet button sends the customer straight to that wallet’s payment page (no PayBridgeNP picker in between). Clicking More payment options → lands them on the PayBridgeNP hosted checkout picker.
  6. After payment, the Shopify order flips to Paid within seconds
  7. The customer is redirected back to the Shopify order status page, now showing Paid
If anything above doesn’t happen, jump to Troubleshooting.

Sandbox test credentials

If your PayBridgeNP API key starts with sk_test_, use these built-in test credentials on the PayBridgeNP hosted checkout:
ProviderCredential
eSewaAny amount, merchant code EPAYTEST
KhaltiPhone 9800000001, PIN 1111, OTP 987654
Sandbox payments appear in your PayBridgeNP dashboard under Sandbox - no real money moves.

Protected customer data

PayBridgeNP for Shopify reads the customer’s email, phone, and name from each order so we can send the payment-link SMS and email. We also read the shipping address (and, when address collection is enabled on the checkout, write it back to the order). We do not read order history beyond the current order, do not use the data for marketing, and do not run automated profiling. Customer email and phone are stored encrypted at rest in the app’s database and automatically nulled out 90 days after the order reaches a terminal state (paid, cancelled, or expired). This satisfies Shopify’s Protected customer data and data-minimisation requirements.

What’s next