uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Questions on paypal - - - again! Sorry :)

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Oct-23-17 07:35 AM EST
Original Message
Questions on paypal - - - again! Sorry :)
Author Matt on 06-05-2002 at 18:39 (EST)
Ok, let me try to explain this.

I am hosted on UNIX box, three domains. I am setting and have been, trying to setup UShop to work on one of the subdomains. This is on a shared, hosted server using one https:// link.

Here's my dilemma. I am using PHP to link a mysql database with the store and cart. I am using the following directory structure.

domain.com
&pip;- cgi-bin
&pip;- data
&pip;- orders
&pip;- classes
&pip;- html

The full link to the secure server is as follows:

https://secure14.prohosting.com/accountnumber/domain.com/directory-or-file.htm

The process works fine, only thing is, when it hits the paypal.htm file for transfer to paypal for collection of payment.

The problem is that nothing is actually created in the orders directory.

Diagnostics shows everything is ok... but nothing is actually created? Is this right, am I overlooking something?

check for yourself - http://www.websystemz.com/uburstsample.htm

Please let me know! Thanks folks!
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  Directory correction Matt, 2002-06-05 18:41:24 (1)
            RE: Directory correction Bill Weiner, 2002-06-06 06:36:06 (2)
                 Thank you! Matt, 2002-06-07 11:22:51 (3)
                      RE: Thank you! Bill Weiner, 2002-06-10 05:13:02 (4)
                           Paypal Sommay, 2003-04-02 15:52:44 (5)
                                RE: Paypal Bill Weiner, 2003-04-03 08:00:43 (6)
                           Adding the Paypal Code to the script Brian Levine, 2003-04-11 13:02:52 (7)

Messages In This Discussion
         1. Directory correction
        Author Matt on 06-05-2002 at 18:41 (EST)
CGI-BIN contains data and orders
classes in root
html in root

for some reason, the original post didn't show it correctly!
TABLE OF CONTENTS
                 2. RE: Directory correction
                Author Bill Weiner on 06-06-2002 at 06:36 (EST)
The experimental PayPal interface listed in the "03/04/2001" posting at:

http://www.uburst.com/uShop/developers.html

... actually does not use the uShop CGI scripts at all. In fact, you should be linking to it with a regular HTML link and you don't have to use the uShopOrderButton applets at all.

Anyway, because that paypal.html file does not utilize the uShop CGI script at all... no order files will be written to the "data" directory. That experimental paypal.html interface is a one-way process with no response processing.

FYI: In the next release of uShop, we do plan on having a full PayPal interface/integration that will utilize the uShop CGI script to process responses from PayPal and maintain order files. So look for that in the future.
TABLE OF CONTENTS
                         3. Thank you!
                        Author Matt on 06-07-2002 at 11:22 (EST)
Bill, got everything to work just fine now...

With the code on one of the support forums, posted by someone named Brian Levine, I got the order to post to the data directory, process the payment and get the thank you page completed!

Maybe, this should be an option for you guys to point to in the future with others having the same issues...just my two cents, keep up the good work!!

Matt
TABLE OF CONTENTS
                                 4. RE: Thank you!
                                Author Bill Weiner on 06-10-2002 at 05:13 (EST)
Great! Glad you got it working. And, Yes, we are making a standard interface to PayPal for the next release.
TABLE OF CONTENTS
                                         5. Paypal
                                        Author Sommay on 04-02-2003 at 15:52 (EST)
Hi Bill, you normally tell us what line to search for, what line do I need to do a search to add the following code:


# Replace the USHOP INSTRUCTIONS.
$order_form_html =~ s//$order_instructions/g;

# Replace the PAYPAL BUTTON.
if (($payment_method eq "custom_payment") && ($settings[52] =~ /yes/i))
{
$order_total = sprintf("%.2f", $totals_total);
$paypal_site = "https://www.paypal.com/cgi-bin/webscr";
$paypal_button = "";
$paypal_button .= "";
$paypal_button .= "";
$paypal_button .= "";
$paypal_button .= "";
$paypal_button .= "";
$paypal_button .= "";
$paypal_button .= "";
}
$order_form_html =~ s//$paypal_button/g;


Thanks again...

TABLE OF CONTENTS
                                                 6. RE: Paypal
                                                Author Bill Weiner on 04-03-2003 at 08:00 (EST)
I think you would want to put something like that in the "get_custom_payment_button_html" subroutine of the ushop.pl script... however, I'm not sure if that will work the way you want it to.

If you are looking to have an integrated interface with PayPal, we will be having such an interface in the next release. In fact, if you would like to try out a Beta version of the interface, you can send a support request to us at:

http://www.uburst.com/supportform.html

... with your license number... and we can get you a beta version of the PayPal interface that will be included with uShop 4.0.
TABLE OF CONTENTS
                                         7. Adding the Paypal Code to the script
                                        Author Brian Levine on 04-11-2003 at 13:02 (EST)
Actually this is my code (I think). The first two lines are from the original script:

# Replace the USHOP INSTRUCTIONS.
$order_form_html =~ s//$order_instructions/g;

The rest of the Paypal code goes after this.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.