index.js
function _convertDetails(type, details) {
  var convertedDetails = {}
  for (var data in details) {
    const string = type + '[' + data + ']';
    convertedDetails[string] = details[data];
  }
  return convertedDetails;
}
function _convertDetails(type, details) {
  var convertedDetails = {}
  for (var data in details) {
    const string = type + '[' + data + ']';
    convertedDetails[string] = details[data];
  }
  return convertedDetails;
}
function _convertDetails ( type , details ) { var convertedDetails = { } for ( var data in details ) { const string = type + '[' + data + ']' ; convertedDetails [ string ] = details [ data ] ; } return convertedDetails ; }
_convertDetails converts and returns the data in the given details to the correct Stripe format for the given type.
_convertDetails converts and returns the data in the given details to the correct Stripe format for the given type .