title: Mangopay error when registering card
body: <p>I am using mangopay for payments on my web app. I use the mangopay js kitt for card registration <a href="https://github.com/MangoPay/cardregistration-js-kit" rel="nofollow">https://github.com/MangoPay/cardregistration-js-kit</a>.
  When The user is on my payment page and clicks on the payment button and it triggers the registerCardDemo() function. This function gets the card's data and 'inits' the cardRegistration process :</p>
  
  <pre><code>function registerCardDemo() {
        if ($('#js-CGV').prop('checked')) {
          $('#js-error-cgv').addClass('hide');
  
          var resultDiv         = $("#js-result");
          resultDiv.removeClass('alert-danger').addClass('alert-warning').html("Vérification…");
          resultDiv.removeClass('hide');
  
          // Card register data prepared on the server
          var cardRegisterData = {
            cardRegistrationURL:  "&lt;%= @card['CardRegistrationURL'] %&gt;",
            preregistrationData:  "&lt;%= @card['PreregistrationData'] %&gt;",
            accessKey:            "&lt;%= @card['AccessKey'] %&gt;",
            Id:                   "&lt;%= @card['Id'] %&gt;"
          }
  
          // Card data collected from the user
          var cardData = {
            cardNumber:         $("#card_number").val(),
            cardExpirationDate: $("#card_expiration_date").val().replace('/',''),
            cardCvx:            $("#card_cvx").val(),
            cardType:           $("#card_type").val()
          }
  
          // Set MangoPay API base URL and Client ID
          mangoPay.cardRegistration.baseURL   = "&lt;%= ENV['MANGOPAY_API_URL'] %&gt;";
          mangoPay.cardRegistration.clientId  = "&lt;%= ENV['MANGOPAY_CLIENT_ID'] %&gt;";
          var validateCard = mangoPay.cardRegistration._validateCardData(cardData)
  
         if (validateCard == true) {
            console.log("les datas de la carte sont bonnes");
          // Initialize the CardRegistration Kit
            mangoPay.cardRegistration.init(cardRegisterData);
  
            // Register card
            mangoPay.cardRegistration.registerCard(cardData,
              function(res) {
                var message = '&lt;strong&gt;Votre carte a été vérifiée ' + res.CardId + ' &lt;/strong&gt;.&lt;br /&gt;';
                message    += '&lt;strong&gt;Le paiement est en cours&lt;/strong&gt;';
                resultDiv.removeClass().addClass('alert alert-success');
                resultDiv.innerHTML   = message;
  
                var form = $('#payment_form');
                form.find('button').prop('disabled', true);
                form.append($('&lt;input type="hidden" name="card_id" /&gt;').val(res.CardId));
                form.get(0).submit();
              },
              function(res) {
                var message = "&lt;strong&gt;Votre carte n’a pas été débitée.&lt;/strong&gt;&lt;br /&gt;";
                message    += '&lt;strong&gt;' +res.ResultMessage + '&lt;br /&gt; Code : ' + res.ResultCode + '&lt;/strong&gt;' ;
  
                resultDiv.addClass('alert alert-warning');
                resultDiv.innerHTML   = message;
              }
            );
          }
          else {
             console.log("les datas de la carte sont mauvaises");
            $("#js-result").removeClass("alert-warning").addClass('alert-danger');
            $("#js-result").html("&lt;strong&gt;Les informations de votre carte sont incorrectes. Merci de bien vouloir réessayer avec une autre carte. &lt;/strong&gt;") ;
  
          }
  
        }
        else {
          $('#js-error-cgv').removeClass('hide');
        }
      }
    &lt;/script&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I am getting the following error in the console when trying to register the card </p>
  
  <pre><code>mangoPay.cardRegistration.registerCard
  
  POST https://homologation-webpayment.payline.com/webpayment/getToken net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH
  </code></pre>
  
  <p>the console is showing me error on line 510 of </p>
  
  <p><a href="https://github.com/Mangopay/cardregistration-js-kit/blob/master/kit/mangopay-kit.js#L510" rel="nofollow">https://github.com/Mangopay/cardregistration-js-kit/blob/master/kit/mangopay-kit.js#L510</a>
  when trying to tokenizeCard :
  <a href="https://github.com/Mangopay/cardregistration-js-kit/blob/master/kit/mangopay-kit.js#L107" rel="nofollow">https://github.com/Mangopay/cardregistration-js-kit/blob/master/kit/mangopay-kit.js#L107</a> </p>
  
  <p>What am I missing here</p>