If your license key is '<key here - snip>', perhaps google is parsing
the value as a nested xml element (because of the angle brackets).
That's not valid xml. you can imagine the complete line of xml to look
something this:
<GoogleMerchantDataField><key here - snip></GoogleMerchantDataField>
You probably want your license.rb file to return a valid string?
Then the google parser would behave normally, for a valid xml, for example
<GoogleMerchantData>d3b07384d113edec49eaa6238ad5ff00</GoogleMerchantData>
Does that work?
dreamcat4
drea...@gmail.com
No idea, out of lock, sorry.
I have generated license keys with a dash (minus sign '-') and had
worked for me with Google Checkout. Its not really possible to double
check this (due to a database error, PotionStore hasn't been working
for me lately). You may need to consult the google api docs if there's
nothing wrong in PS.
Here's my licensekey.rb:
#!/usr/bin/env ruby
#
# Modify this file and put in your own license key generator
#
def random_chars_of_length(len)
chars = ("A".."Z").to_a + ("0".."9").to_a
result = ""
1.upto(len) { |i| result << chars[rand(chars.size-1)] }
return result
end
def make_license(product_code, name, copies)
# license = product_code.upcase() + '-' + random_chars_of_length(16)
license = product_code.upcase() + '-' + "LICENSE_KEY"
return license
end
# Simple command line test
if __FILE__ == $0
puts make_license('tgr', 'Andy Kim', 1)
end
dreamcat4
drea...@gmail.com