How do I pass the Customer.Code to the Redirect URL after successful Purchase?

Clay Nichols's Avatar

Clay Nichols

17 Nov, 2011 01:17 AM

I'm trying to pass the Customer.Code back via the New Customer Return URL on
https://cheddargetter.com/admin/hosted-settings/return-locations

I'm using:
http://www.bungalowsoftware.com/subscription/info/?CustomerCode={$c...

But when I try to save it I get an error that this is not a valid URI

GOAL: After the customer subscribes, we need to show them a page with instructions, including the Customer.Code.

  1. Support Staff 1 Posted by Marc Guyer on 17 Nov, 2011 01:15 PM

    Marc Guyer's Avatar

    Hi Clay -- This is actually not possible. Are you creating the customer code before redirecting to the create page (e.g., https://subdomain.chargevault.com/create?code=your_customer_code) ? This is the intended way to use the hosted pages. In other words, the customer's identifier should exist in your app before sending the customer to the hosted pages.

    If the code isn't passed in, the customer's email address is used as the customer code. We suggest that you not rely on this default since we do not validate this address other than for format and valid MX host. If you would like to use this default, you can almost assume that the customer's email address is the code, however you'd need to rely on the customer using/typing the same email address twice.

    Some documentation on this topic: http://support.cheddargetter.com/kb/hosted-payment-pages/hosted-pay...

  2. Marc Guyer closed this discussion on 17 Nov, 2011 01:15 PM.

  3. Clay Nichols re-opened this discussion on 17 Nov, 2011 01:54 PM

  4. 2 Posted by Clay Nichols on 17 Nov, 2011 01:54 PM

    Clay Nichols's Avatar

    Yes, we were planning to create the CODE and pass it to CG.
    But how will our Return Page know that Code? (I guess we could put it in a Cookie but that seems kind of kludgey).

    How do folks typically handle this?

  5. 3 Posted by Clay Nichols on 17 Nov, 2011 01:57 PM

    Clay Nichols's Avatar

    Is it possible to pass a Return URL to CG with the original \create request?
    And could we include a parameter? (like ?TheCode=Our_Customer_Code) ?

    (There is a parameter for that in your Docs but it says it's only if you're using PayPal (and we'll be processing CC's)

  6. Support Staff 4 Posted by Marc Guyer on 17 Nov, 2011 02:42 PM

    Marc Guyer's Avatar

    Does your system have some sort of authentication/authorization system? In other words, do customers log into your system (presumably this is where the customer code would come from)? If so, then your system would know the customer code as part of authentication and your authorization routine can use the status check to determine whether or not the account is active. This should be done periodically (but not on every request) as the status can change based primarily on whether or not the customer's payment is up to date.

  7. 5 Posted by Clay Nichols on 17 Nov, 2011 04:49 PM

    Clay Nichols's Avatar

    Yes, the customer types in their CODE to "log in" and use the system.
    But we need to show the CODE to the customer so that they can then type it in.

    How does the customer know what their Code is once they get to our "Results" (or "Return" ) URL? (I think most of them won't know to go BACK to their reciept page and copy the Code.

    After they successfully sign up for the service (via CG hosted shopping cart) we then need to show them an Instructions Page with their Code on it. Something like.

    1. Click on this link and download and run the activator. (This s for desktop software).
    2. Enter your CODE. {This is where we need to show them their code}
  8. 6 Posted by Clay Nichols on 17 Nov, 2011 10:50 PM

    Clay Nichols's Avatar

    This discussion has changed a bit so I reposted it as a new thread to:
    http://support.cheddargetter.com/discussions/questions/1037-how-do-...

  9. adam closed this discussion on 21 Nov, 2011 03:48 PM.

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

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM