Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Wordpress transfer to from an external (non-Wordpress page)

We have a situation where the customer has a new wordpress website & want's to use the on-line payment processing from the "old" (non-wordpress) site.

My thinking is to modify one of the menu items on the Wordpress site to refer to an absolute url on the old site to get to the payment page.

My question is "getting back".

What I would like to do is after payment processing is complete, have it return to the Wordpress site "main page" & show a Javascript like popup that says something like "Thank you for your payment" with a Close button (or just an X in the upper right).

Is there a generic way to do that without having to know the details of the specific theme, etc.?

Thanks
Avatar of Gary
Gary
Flag of Ireland image

I would be hesitant transferring to a non recognised website for payments.
Why can they not just move the the payment processing to the new site.

As for going back just append the url with an hash that you main page can check on load with some js in the head and if set give the alert

if(location.hash=="paid"){
    alert("Thank you")
}
Avatar of Richard Korts

ASKER

To Gary,

The existing payment page works & has been live for years, I'm not concerned about that. It uses Authorize.net, in my view one of the best at doing that.

By "hash" you mean like www.somesite.com/#paid?

I have done a little WordPress but I don't know how to insert custom Javascript into a WordPress page. Can you provide reference?
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial