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