Displaying the Bank Widget

Use the selectBankWidget function to display a Trustly Widget inline on your page which allows the User to select their bank. The SDK controls opening the Trustly Lightbox where the User will complete their Bank Authorization.


When the User exits the Trustly Lightbox, the SDK will direct the User to your returnUrl or cancelUrl. See Handling the Redirect for more information.

Select Bank Widget

Use this HTML to display the Bank Widget on your screen:

  <div id="widget-id"></div>
    Trustly.selectBankWidget(establishData, TrustlyOptions);


establishDataSee Establish Data
TrustlyOptionsSee Getting Started