Resolve
  • Integrations
    • E-commerce transaction flow
    • Shopify / Shopify Plus
      • Processing transactions (Shopify)
      • Hide Resolve from non-B2B Customers in Shopify Checkout
    • BigCommerce
      • Processing transactions (BigCommerce)
      • Multi-Storefront Configuration
      • Payment Method Customization (B2B Edition)
      • Managing Shipments
      • Conditionally Show Resolve At Checkout
      • FAQs
    • Magento 2
      • Processing transactions (Magento 2)
    • WooCommerce
      • Processing transactions (WooCommerce)
    • Resolve checkout-sdk
      • Cancel an Uncaptured Charge
      • Errors
    • Add credit application modal
  • Merchant operations
    • Customer dispute resolution procedures
    • Sales-Rep Led Checkout
    • ERP & eCommerce Integrations
Powered by GitBook
On this page
  • Overview
  • Instructions

Was this helpful?

  1. Integrations

Add credit application modal

Overview

Before a customer can pay with credit terms, they must have applied and been approved for a Resolve account. This guide shows you how to:

  • Display your credit application as modal (so that users never leave your site)

Instructions

  1. Make sure resolve.js is on the webpage that will launch the application modal

    <script src="https://app.resolvepay.com/js/resolve.js"></script>
  2. Use jquery to launch the application by calling resolve.application()

<html>
  <script src="https://app.resolvepay.com/js/resolve.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script>
    $().ready(function() {
      $('.btn-application-modal').click(function() {
        resolve.application({
          modal: true,
          merchant: {
            id: 'test', // replace this value with your merchant id
          },
        });
      });
    });
  </script>
  <body>
    <ul>
      <li>Modal: Pay with Net 60. <span class="btn-application-modal" style="color: -webkit-link;cursor:pointer;text-decoration:underline;">Learn more.</span></li>
      <li>Redirect: Pay with Net 60. <a href="https://app.resolvepay.com/test/apply">Learn more.</a></li>
    </ul>
  </body>
</html>
PreviousErrorsNextMerchant operations

Last updated 1 year ago

Was this helpful?