That depends on what language you are using, and what method you are
using to get the variables from the CGI interface. But assuming you have
already gotten the paytype value passed from ShopSite into a variable
called $paytype and you are using perl, then before your script prints
anything do something like this:
unless ($paytype eq '7') {
And then don't forget to put the closing } after your last print
statement.
-Loren
Webmaster - Dave's Discount Motors wrote:
Yeah, I found the warning a little too late
As someone who is not a proficient cgi scripter, could you give an
example
of how such a test would be implemented?
"Loren" <loren_d_c@yahoo.com> wrote in message
news:bla2pu$r82$1@support.shopsite.com...
Yes it is possible. PayPal is paytype 7, and the paytype selected is one
of the variables available through the Order API, so your program can
have an if test to see if this variable equals 7.
Here is the warning regarding this in the help documentation:
http://www.shopsite.com/help/6.3/en-US/ ... r.api.htmlThe reason this is the case is that in order to send the shopper to
PayPal to complete the order, ShopSite outputs redirect headers to the
browser telling it to go there. However if your Order API program is
also outputting HTML content type headers (so that it can write to the
browser/stdout), the browser will choke, it only wants to see one
set/type of headers per document.
-Loren
Webmaster - Dave's Discount Motors wrote:
Major Problem !!!
I just discovered today that any API that uses stdout ie any API that
writes
information to the HTML page, interferes with the PayPal payment
method.
I
have lost a lot of orders over the past 2 weeks after implementing a
custom
order API.
Anyone know if it is possible to include a test in the API to only
exectute
if the "Payment Method" field is something OTHER than PayPal?
Thanks in advance
"Rob" <rob@mangiafico.net> wrote in message
news:bl9lgj$ofp$1@support.shopsite.com...
The API would be a perl script or CGI script that you place in the
shopping
cart directory. You then enable it under Merchandising -> Order API.
http://www.shopsite.com/help/6.3/en-US/ ... r.api.htmlRob
"Tricia in NJ" <tricia@ahoycaptain.com> wrote in message
news:bl9kjq$o8s$1@support.shopsite.com...
Where would you add the API?
Tricia
tricia@ahoycaptain.com"Rob" <rob@mangiafico.net> wrote in message
news:bjbo5j$kgt$1@support.shopsite.com...
Ryan,
The only way to do this would be to create an order API script that
could
output code to the <HEAD> section of the page before the receipt is
shown.
This can be done with a perl script.
Rob
"Webmaster - Dave's Discount Motors" <webmaster@davesmotors.com
wrote
in
message news:bjbfq6$it4$1@support.shopsite.com...
Hi all,
To track the effectiveness of our online advertising with Overture,
I
need
to be able to place some information in the <head> section of the
page
generated by thankyou.cgi (I am using SS 6.3 on Solaris).
Is this possible? I can't seem to be able to access this section of
the
generated page anywhere.
Thanks in advance!
Ryan Ricks
webmaster@davesmotors.com