Relax::MissingParameter (Relax::MissingParameter):

8 views
Skip to first unread message

adil

unread,
Nov 25, 2010, 8:12:00 AM11/25/10
to Remit
i am doing recurring payment( Amazon FPS Advanced Quick Start).
Followed
http://edgenic.com/2009/01/24/software-as-a-service-with-amazon-fps-using-remit-for-ruby/
I used remit and got the error
Relax::MissingParameter
for
pay_response = api.pay(request)

My code is


api = Remit::API.new(
"<your AWS access key>",
"<your AWS secret key>",
true
)

response = api.get_tokens
# puts response.tokens.first.token_id
recurring_use_pipeline = api.get_recurring_use_pipeline(
:caller_reference => Time.now.to_i.to_s,
# :recipient_token => install_recipient_response.token_id,
:transaction_amount => "1.0",
# :charge_fee_to => "Recipient",
:recurring_period => "1 Month",
# :return_URL => 'http://localhost:3000/home/',
:caller_key => "accesskey"
)
request = Remit::Pay::Request.new(
# :caller_token_id => install_caller_response.token_id,
# :recipient_token_id => install_recipient_response.token_id,
# :sender_token_id => pipeline_response.tokenID,
:return_URL => 'http://localhost:3000/home/',
:transaction_amount => Remit::RequestTypes::Amount.new(
:amount => "1.0",
:currency_code => "USD"
),
:charge_fee_to => "Recipient",
:caller_reference => Time.now.to_i.to_s,
:temporary_decline_policy =>
Remit::RequestTypes::TemporaryDeclinePolicy.new(
:temporary_decline_policy_type =>
Remit::TemporaryDeclinePolicyType::IMPLICIT_RETRY
)
)

pay_response = api.pay(request)


Will it be redirected to amazon payment pages for authorization?
Please guide me to right way.
Please reply.

Thanks
Adil
Reply all
Reply to author
Forward
0 new messages