Relax::MissingParameter

11 views
Skip to first unread message

Aaron Soules

unread,
Jun 6, 2010, 3:33:52 PM6/6/10
to Remit
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?

Aaron Soules

unread,
Jun 8, 2010, 2:49:56 PM6/8/10
to Remit
This problem mysteriously went away, but I ran into it again with
Remit::Reserve::Request, where it turned out that
Remit::Reserve::Request in v0.0.5 requires the :recipient_token_id
attribute, but its actually not required by Amazon when there is no
3rd party. I forked the repo and make the edit, so that problem went
away. Now I've moved on to fighting with unsuccessful reserve
requests :)

-Aaron


On Jun 6, 3:33 pm, Aaron Soules <asou...@gmail.com> wrote:
> I've been following this blog post:http://edgenic.com/2009/01/24/software-as-a-service-with-amazon-fps-u...
Reply all
Reply to author
Forward
0 new messages