Skip to content

Checkout Popup Integration

Integrate the Bridge Pay checkout popup into your website to allow customers to buy subscriptions directly without being redirected away.

Add the following script block to your website before the closing </body> tag:

<script src="https://app.bridgepay.store/popup/index.js" defer></script>

Open your website HTML file (such as index.html) and paste the script tag immediately before the closing </body> tag.

You can add the script into WordPress without modifying theme files by using a plugin like WPCode (Insert Headers and Footers):

  1. In WordPress Admin Dashboard, navigate to Plugins > Add New and search for WPCode.
  2. Install and activate the plugin.
  3. Open Code Snippets > Header & Footer.
  4. Paste the script tag into the Footer box.
  5. Click Save Changes.

Link your website buttons or payment links to specific IPTV plans using the bpid (Buy Plan ID) attribute.

  1. Copy your Plan ID from your dashboard under the registered domain plans.
  2. Add the bpid="YOUR_PLAN_ID" attribute to any HTML element (button, anchor link, or container):
<button bpid="YOUR_PLAN_ID">Buy Plan</button>

When a customer clicks your buy button:

  1. The Bridge Pay checkout window opens smoothly right on your page with your plan name and pricing.
  2. The customer chooses their payment method (PayPal or Credit Card).
  3. Once the payment completes, their account credentials appear on screen instantly, without ever leaving your store.