lib/sailthru.rb in sailthru-client-1.06 vs lib/sailthru.rb in sailthru-client-1.07

- old
+ new

@@ -5,11 +5,11 @@ require 'json' require 'digest/md5' module Sailthru - Version = VERSION = '1.06' + Version = VERSION = '1.07' class SailthruClientException < Exception end module Helpers @@ -393,13 +393,10 @@ # # Record that a user has made a purchase, or has added items to their purchase total. def purchase(email, items, incomplete = nil, message_id = nil) data = {} data[:email] = email - - if verify_purchase_items(items) - data[:items] = items - end + data[:items] = items if incomplete != nil data[:incomplete] = incomplete.to_i end