Using JSFiddle to Customize and Test Scenarios

To customize and test scenarios in JSFiddle:

  1. Press Edit in JSFiddle in the top right corner of the JSFiddle widget embedded in this page.
    This redirects you to a page where you can customize and test code.
  2. On the JSFiddle page, specify:
    var nuveiWebSDK = webSDK({
      //env: 'int', //  int, prod
      sessionId: orderData.sessionId, // received from POST /orders API request
      support19Digits: true, // false (default)
      alwaysCollectCvv: 'optional',
      blockCards: JSON.stringify(["prepaid"]), // prepaid cards are blocked
      onResult: function(res) {
        console.log('onResult callback', res);
      }
    });

    By default (Classic layout), these settings are in the bottom-left corner:

Feel free to change the code, including the HTML and CSS.