Last piece of the puzzle, please help.

2 views
Skip to first unread message

Jesse

unread,
Aug 27, 2009, 7:21:01 AM8/27/09
to Remit
I've gotten the payment system to work, except I don't know how to
validate the response. Please see line 53, http://pastie.org/596506

Hpricot grabs any incoming XML, and pretty much seems to do all the
work. (I don't know how it does, but it does.)

Good news for me, I have a cofounder for this site, and partner in
general. He's working on this ticket now, but I'd like to ask if this
is something more trivial than involved, so I can ask him to work on
something more fun.

Bruz

unread,
Aug 27, 2009, 9:53:21 AM8/27/09
to Remit
If you want to use Remit to parse the response, you can put this at
the top of your finalize action:

pipeline_response = Remit::PipelineResponse.new(
request.url,
"your secret key"
)

Then you can use pipeline_response.valid?, pipeline_response.success?
and pipeline_response.tokenID to get the information that the FPS
pipeline provides.

On Aug 27, 4:21 am, Jesse <teff...@gmail.com> wrote:
> I've gotten the payment system to work, except I don't know how to
> validate the response.  Please see line 53,http://pastie.org/596506

Jesse

unread,
Aug 27, 2009, 11:52:00 AM8/27/09
to Remit
Thank you, Bruz. I feel confident to launch my app with this.
Reply all
Reply to author
Forward
0 new messages