[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Javascrip error in Paypal

Posted on 2011-03-08
1
Medium Priority
?
409 Views
Last Modified: 2012-05-11
Hello, I'm doing some tests using the sandbox. I've configured the seller account to redirect clients back to the seller's website automatically. I know this automatic redirect only works if clients pay with a paypal account and not with their credit card. I've sucessfully tried several tests paying with paypal test accounts but when I try to pay with credit card the payment is ok (validated + verfiied), but in the last page (Thank you for your payment blah blah... and link back to the seller's website) I get the following Javascript error (I've just noticed now that I've tested on IE).

 
This is the error as shown in the Firefox error console:

 
Error: echo is not defined
Archivo de origen: https://www.sandbox.paypal.com/es/cgi-bin/webscr?cmd=_flow&SESSION=bhEeL7Uuty-4rMUma50SaKoeKIn55dUlc2B-TN3ocQKG4Kkgik4lHb7xiXi&dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9bd7371532d7fbae4715b6ee2d3a381319d43ea0c93be06bb1
Línea: 37

 
and it points to this (exactly to the echo):


YAHOO.util.Event.addListener(window,"load",function(){
try {
PAYPAL.common.appendField("done", "flow_name", PAYPAL.common.loginflow);
PAYPAL.bp.init("done","bp_mid");PAYPAL.common.appendField("done", "bp_ks1");
PAYPAL.ks.init("done","password","bp_ks2");
PAYPAL.ks.init("done","password-confirm","bp_ks3");
} catch(err){ echo(err); }
});

0
Comment
Question by:alfred-bsp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 2000 total points
ID: 35081994
I do not know much about PAYPAL integration, but it seems that there is no such function (especially in js) as echo, try alert instead

try {
PAYPAL.common.appendField("done", "flow_name", PAYPAL.common.loginflow);
PAYPAL.bp.init("done","bp_mid");PAYPAL.common.appendField("done", "bp_ks1");
PAYPAL.ks.init("done","password","bp_ks2");
PAYPAL.ks.init("done","password-confirm","bp_ks3");
} catch(err){ alert(err); }
});
0

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question