nov / itunes-receipt

Handle iTunes In App Purchase Receipt Verification
MIT License
94 stars 65 forks source link

Where to set Shared secrent for Auto renewal subscriptions? #5

Closed dhanu closed 10 years ago

dhanu commented 10 years ago

This gem is working perfectly for non renewal subscriptions.

For auto renewal subscriptions verification fails. Auto renewal subscription needs shared secret but i don't know where to set My Shared Secret in the code.

Can you please help me....

nov commented 10 years ago

You can set Itunes.shared_secret = "foobar" ref) https://github.com/nov/itunes-receipt/blob/master/lib/itunes.rb#L34

However, to be honest, since I implemented this gem long time ago and I haven't used Auto renewal subscriptions, it's not tested...

dhanu commented 10 years ago

Thanks.. It works fine after setting shared secret like this.

Itunes.shared_secret = "foobar"