help on remit

6 views
Skip to first unread message

sadeesh kumar

unread,
Nov 10, 2009, 8:18:57 AM11/10/09
to Remit
hello ,

@install_caller_response = @api.install_payment_instruction(request)

@payment[:caller_token_id] = @install_caller_response.token_id

i am getting nill object as @install_caller_response while giving
payment instruction.help me to work on remit

thank you.



Bruz Marzolf

unread,
Nov 10, 2009, 10:36:42 AM11/10/09
to re...@googlegroups.com
Nothing looks wrong with the code you posted, so perhaps the problem
is with how you're creating @api or the request object. Can you post a
dump of those?

Bruz

unread,
Nov 12, 2009, 10:17:50 AM11/12/09
to Remit
We solved this outside the group, but here's what was happening in
case it helps anyone. The request was being set up and called as:

request = Remit::InstallPaymentInstruction::Request.new(
:payment_instruction => "MyRole == 'Recipient'",
:caller_reference => Time.now.to_i.to_s,
:token_friendly_name => "Recipient Token",
:token_type => "Multiuse"
)
@install_caller_response = @api.install_payment_instruction(request)

There were two problems: 1) token type should be "MultiUse" instead of
"Multiuse" (note the uppercase U), and 2) with a multi use token type
you have to also specify a usage limits (see FPS docs). For the caller
token though it may make more sense to use "Unrestricted" token type.

On Nov 10, 7:36 am, Bruz Marzolf <bruz.marz...@gmail.com> wrote:
> Nothing looks wrong with the code you posted, so perhaps the problem
> is with how you're creating @api or the request object. Can you post a
> dump of those?
>
> On Tue, Nov 10, 2009 at 5:18 AM, sadeesh kumar
>
Reply all
Reply to author
Forward
0 new messages