Skip to content

Link / Front-end Integration

The Link Integration (also called Simple Loan Form) allows merchants on hosted platforms to direct customers to a WeGetFinancing-hosted form without making a server-side API call. Cart and customer data are passed as URL query parameters.


EnvironmentBase URL
Livehttps://partner.wegetfinancing.com/partner/loan/{merchant_id}
Sandboxhttps://partner.sandbox.wegetfinancing.com/partner.sandbox/loan/{merchant_id}

Replace {merchant_id} with your numeric merchant ID (e.g. 1234).


Append parameters to the URL to pre-fill the form. At a minimum, pass cart_items and shipping_amount.

ParameterTypeDescription
cart_itemsJSON arrayCart items — see Cart Item Format
shipping_amountdecimal(2)Shipping cost
first_namestringCustomer first name
last_namestringCustomer last name
emailstringCustomer email
billing_addressstringStreet address
billing_citystringCity
billing_statestring (2)State abbreviation
billing_zipcodestringZIP code
tax_amountintegerTotal tax in dollars
merchant_transaction_idstringYour order ID — echoed back in postbacks
success_urlstringRedirect after successful approval
failure_urlstringRedirect if the customer cancels
software_namestringShopping cart software name (tracking only)

cart_items is a URL-encoded JSON array:

[
{"sku": "ref43", "display_name": "TV Samsung 30\"", "quantity": 2, "unit_price": 2500, "unit_tax": 250.00},
{"sku": "ref342", "display_name": "Training Course", "quantity": 1, "unit_price": 1500, "unit_tax": 150.00}
]
FieldTypeRequiredDescription
skustringYesInternal product reference
display_namestringYesHuman-readable product name
unit_pricedecimalYesPrice per unit
quantityintegerYesNumber of units
unit_taxdecimalNoTax amount per unit

https://partner.sandbox.wegetfinancing.com/partner.sandbox/loan/1234?
first_name=John&
last_name=Doe&
email=john%40example.com&
billing_address=15th+Fantasy+Street&
billing_city=New+York&
billing_state=NY&
billing_zipcode=10007&
shipping_amount=50.00&
merchant_transaction_id=ORDER-123&
success_url=https%3A//your-shop.com/success&
failure_url=https%3A//your-shop.com/cart&
cart_items=%5B%7B%22sku%22%3A%22tv01%22%2C%22display_name%22%3A%22TV%22%2C%22quantity%22%3A1%2C%22unit_price%22%3A1370%7D%5D

The loan form can also be embedded directly in your page as an iframe:

<iframe
id="wgf_iframe"
src="https://partner.wegetfinancing.com/partner/loan/1234?shipping_amount=50&cart_items=[...]"
frameborder="0"
width="100%"
height="900px">
</iframe>

Include the wegetfinancing.js widget to enable the lightbox-style interaction alongside the iframe:

<script src="https://cdn.wegetfinancing.com/libs/1.0/wegetfinancing.js"></script>

See Lightbox Widget for the full widget integration guide.


For custom HTML pages or platform templates where the PPE widget is not installed via an app, add the estimator manually:

<!-- In <head> -->
<link href="https://ppe.wegetfinancing.com/index.css" rel="stylesheet" />
<script>
window.ppeConfiguration = {
priceSelector: ".price", // adjust to match your theme's price element
token: "YOUR_ACCESS_TOKEN",
minAmount: 500,
branded: true
};
</script>
<!-- Before </body> -->
<script src="https://ppe.wegetfinancing.com/index.js"></script>

See PPE Widget for the full configuration reference.