www.uburst.com www.uburst.com

"Questions on paypal - - - again! Sorry :)"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Programmer Tips
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Questions on paypal - - - again! Sorry :)"
Posted by Matt on Jun-05-02 at 06:39 PM (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
|- cgi-bin
|- data
|- orders
|- classes
|- 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!

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

Directory correction, Matt, Jun-05-02, (1)
RE: Directory correction, Bill Weiner, Jun-06-02, (2)
Thank you!, Matt, Jun-07-02, (3)
RE: Thank you!, Bill Weiner, Jun-10-02, (4)
Paypal, Sommay, Apr-02-03, (5)
RE: Paypal, Bill Weiner, Apr-03-03, (6)
Adding the Paypal Code to the scrip..., Brian Levine, Apr-11-03, (7)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "Directory correction"
Posted by Matt on Jun-05-02 at 06:41 PM (EST)
CGI-BIN contains data and orders
classes in root
html in root

for some reason, the original post didn't show it correctly!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: Directory correction"
Posted by Bill Weiner on Jun-06-02 at 06:36 AM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "Thank you!"
Posted by Matt on Jun-07-02 at 11:22 AM (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

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "RE: Thank you!"
Posted by Bill Weiner on Jun-10-02 at 05:13 AM (EST)
Great! Glad you got it working. And, Yes, we are making a standard interface to PayPal for the next release.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
5 . "Paypal"
Posted by Sommay on Apr-02-03 at 03:52 PM (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...

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
6 . "RE: Paypal"
Posted by Bill Weiner on Apr-03-03 at 08:00 AM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
7 . "Adding the Paypal Code to the script"
Posted by Brian Levine on Apr-11-03 at 01:02 PM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.