roPanel.style.display = 'none';
          legacyPanel.style.display = 'block';
        });

      } else {
        // Fall back to legacy form. (We could redirect, but) for demo purposes:
        introPanel.style.display = 'none';
        legacyPanel.style.display = 'block';
      }

    }

    function buildSupportedPaymentMethodData() {
      // Example supported payment methods:
      return [{
        supportedMethods: 'basic-card',
        data: {
          supportedNetworks: ['visa', 'mastercard'],
  