Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Encoding Return URL for US Payment Gateway
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Hamilton  
View profile  
 More options Oct 8 2011, 8:20 am
From: Peter Hamilton <peterejhamil...@gmail.com>
Date: Sat, 8 Oct 2011 05:20:00 -0700 (PDT)
Subject: Encoding Return URL for US Payment Gateway
Hi Andrew,

How do I encode the URL for a return url for the US Payment gateway?

Currently using this:

    return_url = url_for :controller => 'donation', :action =>
'callback_us'
    return_url += "?data=${data}"
    return_url += "&donation_id=${donation_id}"
    return_url += "&amount=${amount}"

    url = "http://5050.gd/campaigns/11/donate"
    url += "?return_url=#{CGI::escape(return_url)}"
    url += "&data=#{donation.id}"
    url += "&suggested_amount=#{donation.pledged}"

    return url

Which produces a URL different to the example.
Me:
http://5050.gd/campaigns/11/donate?return_url=http%3A%2F%2Fgiveabuck....
Sample:
http://5050.gd/campaigns/[project_id]/donate?return_url=http%3A%2F%2Fwww.example.com%2Fcallback%3Fname%3D%24%7Bname%7D%26amp%3Bamount%3D%2...

When sent back from 5050 site (which works fine) the params have not
been replaced so come through as ${data} not '49'

Any Ideas?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Senter  
View profile  
 More options Oct 11 2011, 11:45 am
From: Andrew Senter <and...@phenotypic.co.uk>
Date: Tue, 11 Oct 2011 16:45:41 +0100
Local: Tues, Oct 11 2011 11:45 am
Subject: Re: Encoding Return URL for US Payment Gateway

Hi Pete, we were having a few issues with this while I was away so url
parameter substitution was disabled.

Can you give it a shot, see how it goes now? I've put in place a few fixes.

Andrew

On 8 October 2011 13:20, Peter Hamilton <peterejhamil...@gmail.com> wrote:

--
Andrew Senter
http://www.phenotypic.co.uk

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »