I've been following this blog post:
http://edgenic.com/2009/01/24/software-as-a-service-with-amazon-fps-using-remit-for-ruby/
But i got stuck on
install_caller_response = api.install_payment_instruction(request)
Here is what happens when i tried this on the console:
>> @remit = Remit::API.new(FPS_ACCESS_KEY, FPS_SECRET_KEY, true)
>> request = Remit::InstallPaymentInstruction::Request.new(
?> :payment_instructions => "MyRole == 'Recipient' orSay 'Role does
not match';",
?> :caller_reference => Time.now.to_i.to_s,
?> :token_friendly_name => "Friendly Token Name",
?> :token_type => "Unrestricted",
?> :payment_reason => "Testing")
>> response = @remit.install_payment_instruction(request)
Relax::MissingParameter: Relax::MissingParameter
from /opt/local/lib/ruby/gems/1.8/gems/relax-0.0.7/lib/relax/
request.rb:53:in `valid?'
from /opt/local/lib/ruby/gems/1.8/gems/relax-0.0.7/lib/relax/
request.rb:50:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/relax-0.0.7/lib/relax/
request.rb:50:in `valid?'
from /opt/local/lib/ruby/gems/1.8/gems/relax-0.0.7/lib/relax/
service.rb:69:in `call'
from /opt/local/lib/ruby/gems/1.8/gems/remit-0.0.5/lib/remit/
operations/install_payment_instruction.rb:19:in
`install_payment_instruction'
from (irb):8
I've been looking everywhere, but can't seem to find what
Relax::MissingParameter means, or how I can fix it.
Any ideas?