SDK IntegrationPublic API

Weave.tech Credit Check

Getting Started

Weave.tech Credit Check with Smart Credit Check button gives your customer a simplified and secure credit check experience.

Basic integration

Add the Buttons

Add Smart Credit Check buttons to your website. This integration guide helps you:

  • Render the Weave.tech Credit Check button.
  • Test the button.

Add the Weave Javascript SDK to your website

This integration uses the Weave JavaScript SDK to integrate the Smart Credit Check Buttons into your site without any server code.

<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Ensures optimal rendering on mobile devices. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- Optimal Internet Explorer compatibility -->
</head>
<body>
<script
src="https://www.weave.tech/sdk/js?client-id=CLIENT_ID"> // Required. Replace YOUR_CLIENT_ID with your sandbox client ID.
</script>
</body>

Render the Credit Check button

<body>
<script
src="https://www.weave.tech/sdk/js?client-id=CLIENT_ID"> // Required. Replace YOUR_CLIENT_ID with your sandbox client ID.
</script>
<div id="weave-button-container"></div>
<script>
$weave.CreditCheck({
name: "CREDIT CHECK",
elementPosition: "#elementId",
style: {
// To do style for the button Credit Check
},
onAfterSubmit: function(data) {
if(data.status) {
// handle credit check successful
} else {
// handle credit check fail/decline
}
}
}, {
name: "Form name", // Form Title
elementPosition: "weave-button-container",
style: {
// To do style for the form credit check
}
})
</script>
</body>