Checkout
$ 261.12
Show Order Details

Review your Order


Item
Qty
Subtotal
Premium Flies (5 gal)
5
$ 45.67
Lillypad
1
$ 197.23
Subtotal
$ 242.90
Tax
$ 18.22
Discount
$ -2.61
Total
$ 261.12
Modify my Items | Enter a Promo Code

Thank you for your order!

Your order was successfully placed!
Order # 2940-2339

See how we can improve the experience!

Start the checkout example again, and this time choose Bank Account to see how we can simplify the payment process. The customer will authorize their payment by simply entering their login information to their online banking.

No more copying long numbers down and typing out your address to make an online payment!
Start Again

Yes, it was really that simple!

Allowing your customers to use their bank credentials to make payments provides a smooth experience with many benefits over traditional card payments, such as:
  • Significant cost savings
  • No need to know your account number
More Info
Start Again

Would you like more information?

Please enter your contact information, and we will reach out to you to show you how we can save you money and help your customers pay for services more efficiently!
Your Name
Company
Email Address
Phone Number
Submit

We have received your information!

We have received your contact information and will follow up shortly to explain our services and show you how we can save you money and improve your checkout experience at the same time!

Payment Method

Change Payment Method
Bank Account
Credit or Debit Card
Please use fake credentials, answers, and addresses when completing this demo

Credit or Debit Card

Card Number
CVV
Expiration
Continue
Change Payment Method

Billing Information

Cardholder's Name
Address Line 1
Address Line 2
City
State
Zipcode
Phone Number
Continue
Change Payment Method

Payment Options

Card Number
CVV
Expiration
Loading banks, please wait...
Complete Payment

Integration Instructions


Startup Parameters
The startup parameters are sent in your POST message to retrieve the widget code. For more information, see our page on startup options.
display fill Ensures the widget fills the container it is placed in, rather than full screen or modal
headerStyle 3 Removes the header, for appearance purposes
closeBehavior 0 Prevents the user from closing the widget or performing any action once successfully enrolled

The following startup parameters are also required to launch the widget. These parameters are not used in the demo - instead, demo: 2 is used to indicate that this widget is in demo mode, which does not require the following parameters.
clientId *** Although this example uses the demo parameter rather than client id, you will need to provide your client id to launch the widget
clientSecret *** Although this example uses the demo parameter rather than client id and secret, you will need to provide your client secret
customerId *** You will need to pass in the customerId of the user who is using the widget. Not required for demo


Server-side function in ASP.NET Controller
[HttpGet]
public string LaunchWidget_DemoEmbedded() {
    try {
    // Startup Parameters - Here you will include your clientId, clientSecret, and customerId
        var postData = new {                
            display = "fill",
            demo = 2,
            headerStyle = 3,
            closeBehavior = 0
        };

        var postJson = JsonConvert.SerializeObject(postData);

    // Specify your widget URL - This URL may be different depending on your integration
        string uri = "https://appservices.followthefrog.com/v3/test/widget/";

    // Initiate the call to retrieve the widget code
        WebClient client = new WebClient();
        client.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";

        string result = client.UploadString(new Uri(uri), "merchant=" + postJson);

    // Return the result as a string back to the client.
        // The client will inject this result into the page content
        return result;
    }
    catch (Exception e) {
        return e.Message;
    }
}


Code added to your webpage
<!-- Loading Message -->
<div id="widget_demo_embedded_loading">
    <img src="~/images/Loading_Green.gif" />
    <span>Loading banks, please wait...</span>
</div>

<!-- Widget Container -->
<div id="widget_demo_embedded_widget"></div>


Javascript
// This example uses JQuery

// Make a GET call to your server-side function
$.get('/Widgets/LaunchWidget_DemoEmbedded', function (resp) {
    
    // Inject the response into the widget container
    $('#widget_demo_embedded_widget').html(resp);

    // Handle the ready event
    Cashflow.ready = function () {

    // Launch the widget immediately after it is loaded
        Cashflow.open();

    // Hide the loading message
        $('#widget_demo_embedded_loading').hide();
    }

    // Initialize the widget, specifying it's container name
    Cashflow.init({ target: $('#widget_demo_embedded_widget') });
});

CSS
/* Specify the dimensions of the widget on your page */
#widget_demo_embedded_widget {
    height: 200px;
    width: 100%;
    max-width: 750px;
    min-width: 300px;
}

/*  Loading message while the widget is loading */
#widget_demo_embedded_loading {
    padding-left: 20px;
}