Forums/Community/Community Support

Answered

is it possible to redirect a user after success on the hosted payment update page?

Edward Robertshaw
asked this on May 16, 2011 12:47 pm

If I visit:

https://x.chargify.com/update_payment/secret/token

On successfully processing a credit card I want to redirect the user back to our site. In the same way as I can if I used the new option:
https://x.chargify.com/h/secret/subscriptions/new

Am I missing something?

Kind regards,

Edward

 

Comments

User photo
Jay G
Chargify Support
Ajax_loader_small Answer

Hello Edward,

Thank you for contacting Chargify.

The following link to Chargify's documentation on Return URLs may be of assistance:

http://docs.chargify.com/hosted-page-settings

They are configured on a per-product basis per this link to Product Options:

http://docs.chargify.com/product-options

I hope that this addresses your question. I am closing this ticket for now. It will reopen should you reply with additional questions.

Regards,

Jay G.

May 16, 2011 01:27 pm
User photo
Edward Robertshaw

Jay,

The return URL only seams to work on the new products page and not on the update credit card page.

I am asking about the same functionality on the update product page. I can't tell if its possible to do on the update product page.

I have attempted this and thus far failed to get the desired outcome.

Edward

May 16, 2011 06:29 pm
User photo
Jay G
Chargify Support

Hi Edward,

Thanks for your reply.

I am forwarding your message to our technical sales team for their review.

Regards,

Jay G.

May 17, 2011 12:09 am
User photo
Mohd Farid

Hi Jay

Is there any update on this?

Regards

Mohd Farid

May 18, 2011 08:32 am
User photo
Edward Robertshaw

I haven't heard back. Not sure if that last message was intended for me though, with it being addressed at Jay :)

 

May 18, 2011 02:14 pm
User photo
Paul Barker

I'm also seeing the same problem. Does anyone at Chargify have any news?

May 19, 2011 04:20 am
User photo
Michael Klett
Chargify Support

Hey guys, there's no built in functionality for this, but I agree there should be.  This is probably a feature you'll see pop up sometime.

The current default behavior is to re-display the edit form with the message "Your payment information was successfully updated.  It is now safe to leave this page.". This is a bit kludgy, but you could use javascript to redirect, if the URI path includes "/update_payment" AND that success string (or part of it) was on the page.  I think I actually remember someone telling me they were doing that.

May 19, 2011 06:31 pm
User photo
Edward Robertshaw

Michael,

Thanks for the reply.

Ouch but still good to know.

Edward

May 19, 2011 06:39 pm
User photo
Edward Robertshaw

Would you happen to have a cut and paste example of that javascript?

May 19, 2011 06:41 pm
User photo
Edward Robertshaw

just tried:

if (document.getElementsByClassName("message")[0] != null)

  window.location = "http://www.google.com";

Seams to do the trick....

 

May 19, 2011 06:58 pm
User photo
Nader Akhnoukh

@Edward, what event are you listening to?

June 14, 2011 01:05 pm
User photo
Nader Akhnoukh

Update, I couldn't get this to work with jquery load, but an old school onload did the trick.

June 14, 2011 02:19 pm
User photo
Edward Robertshaw

Still following, yes.

June 14, 2011 02:45 pm
User photo
Edward Robertshaw

I just enter the block above into the config box, no events.

June 14, 2011 05:11 pm