Donations for Non-Profits
Use this guide to connect your non-profit's website to Tensile's SDK to enable accepting donations
1. Link to Tensile's JavaScript SDK
To install the Tensile Payments SDK, place the following <script> tag within the <head> of your desired HTML page, e.g. your checkout html page:
To test the sandbox version of the SDK, load the following script instead:
This loads the Tensile SDK and assigns it to a global variable called tensile
2. Add a container div for the Tensile button
In the <body> of your HTML, add a container <div> where you'll want to render the Tensile donation button:
You don't have to use "donation-container" as your ID, but whatever ID you use must also be used in the next step.
3. Instantiate the Tensile button
In the <body> of your HTML, somewhere after the container <div> you just added, add the following <script> tag and logic to configure the button:
4. Test the integration!
You should now have a button on your html page that links to the donations app.


5. Hyperlinks and Sandbox Mode (optional)
Alternatively, if you wish to avoid using the SDK, you can still use the underlying link to your liking, but the app will not open in a modal within the same tab.
e.g. underlying link: https://checkout.tensilepayments.com/donate/Tensile%20Gear
Note that the organization name at the end of the url is web encoded to account for spaces in the organization's name.
If you'd like to test the experience in sandbox mode instead, simply include "sandbox" in the url:
e.g. https://checkout.sandbox.tensilepayments.com/donate/Tensile%20Gear
To link a bank account to a customer profile in sandbox, you can use credentials for any bank and make the username "user_good" and password "pass_good" on the link-a-bank page.
