Sha256: 9cd584ae192fd3689096679f3f0bcfeab979b4db1f2458f3574e0a7675b718af

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

require 'digest/md5'

module SolidusMailchimpSync
  module Util
    # lowercased then MD5 hashed.
    # http://developer.mailchimp.com/documentation/mailchimp/guides/manage-subscribers-with-the-mailchimp-api/
    # Mailchimp does not support non-ascii chars in email addresses as of Aug 2016 according to support.
    def self.subscriber_hash(email_address)
      Digest::MD5.hexdigest(email_address.downcase)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_mailchimp_sync-1.0.0.beta05 lib/solidus_mailchimp_sync/util.rb