Hosted Payment Page tweaks
I am collecting shipping address info as part of my signup process, and I have this information in hand when I shuttle the user off to the CG Hosted Payment Page. I'd like to pass this information in via the URL -- same fashion as the first name, last name, and email -- to pre-populate the billing address fields.
Relatedly, I have an account on my side with their name and info already set up. I don't want to allow them to edit their name or email in CG, so an option to prevent that like the plan code would be awesome.
(removed comments about possible bug, was a problem with my code)
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Marc Guyer on 26 Nov, 2012 09:10 PM
No problem. The parameters are elements of a
subscription
. So, you can pass, for example,subscription[ccCity]
and set it equal to the city.Hmm... not possible right now. Might I suggest developing a method to keep these in sync?
2 Posted by Frank Koehl on 26 Nov, 2012 09:40 PM
Ok, to make sure I understand, the URL would look like this...
Goes without saying, I was hoping you could save me the trouble. ;)
3 Posted by Frank Koehl on 26 Nov, 2012 09:47 PM
Correction: billing address parameters are passed directly, not under the
subscription
array. The following worked for me...Support Staff 4 Posted by Marc Guyer on 26 Nov, 2012 09:58 PM
It seems that both work.
Dean closed this discussion on 23 Jan, 2013 05:37 PM.