Zen Cart Logo
Forums / PayPal Website Payments Pro support / Seeing Order Number in Paypal Pro Details

Seeing Order Number in Paypal Pro Details

Locked

Views: 6,318

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
15 Oct 2009, 5:22 PM
#1
barrylegal avatar

barrylegal

New Zenner

Join Date:
Oct 2007
Posts:
39
Plugin Contributions:
0

Seeing Order Number in Paypal Pro Details

Hi,

I'm using zen cart 1.38 with PayPal Website Payments Pro

Should I be able to see the order number when looking at transaction details? I have several sites and it can get confusing when looking thru transactions and not knowing what site a payment came from.

Regards,
Barry

15 Oct 2009, 5:37 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Seeing Order Number in Paypal Pro Details

Sorry, not at the present time.

16 Oct 2009, 3:47 PM
#3
barrylegal avatar

barrylegal

New Zenner

Join Date:
Oct 2007
Posts:
39
Plugin Contributions:
0

Re: Seeing Order Number in Paypal Pro Details

Thanks- any way if indicating what site or IP address the order came from in Paypal?

16 Oct 2009, 4:43 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Seeing Order Number in Paypal Pro Details

You could try making the following edit to /includes/modules/payment/paypaldp.php, at line 539:
Replace:// unused at present: // $options['CUSTOM'] = ''; // $options['INVNUM'] = ''; // $options['DESC'] = '';with this:```
// send the store name as transaction identifier, to help distinguish payments between multiple stores:
$options['INVNUM'] = STORE_NAME; // (cannot send actual invoice number because it's not assigned until after payment is completed)
// $options['CUSTOM'] = ''; // reserved for internal use in next version of Zen Cart:
// $options['DESC'] = ''; // reserved for internal use in next version of Zen Cart:

16 Oct 2009, 4:58 PM
#5
barrylegal avatar

barrylegal

New Zenner

Join Date:
Oct 2007
Posts:
39
Plugin Contributions:
0

Re: Seeing Order Number in Paypal Pro Details

Cool! I'ts in there, I'll let you know

Incidentally, paypaldp.php is actually in the
/includes/modules/payment dirrectory

16 Oct 2009, 5:10 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Seeing Order Number in Paypal Pro Details

BarryLegal:

Incidentally, paypaldp.php is actually in the
/includes/modules/payment dirrectory

Oops. Typo fixed. :blush:

19 Oct 2009, 6:38 PM
#7
barrylegal avatar

barrylegal

New Zenner

Join Date:
Oct 2007
Posts:
39
Plugin Contributions:
0

Re: Seeing Order Number in Paypal Pro Details

Still not showing up. Here's the details I do get:

Item Total:
$114.93 USD
Shipping:
$0.00 USD
Handling:
$0.00 USD
Sales Tax:
$9.34 USD

Total Amount:
$124.27 USD
Fee amount:
-$2.66 USD
Net amount:
$121.61 USD

Date:
Oct 18, 2009
Time:
17:38:44 EDT
Status:
Completed

Payment Type:
Instant

19 Oct 2009, 6:54 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Seeing Order Number in Paypal Pro Details

That's curious.
I tested it myself and it worked great:

Item Total:
$49.99 USD
Shipping:
$2.50 USD
Handling:
$0.00 USD
Sales Tax:
$6.37 USD

Total Amount:
$58.86 USD
Fee amount:
-$2.01 USD
Net amount:
$56.85 USD

Invoice ID:
My Testing Store
Date:
Oct 16, 2009
Time:
09:32:28 PDT
Status:
Completed

Payment Type:
Instant

19 Oct 2009, 8:31 PM
#9
barrylegal avatar

barrylegal

New Zenner

Join Date:
Oct 2007
Posts:
39
Plugin Contributions:
0

Re: Seeing Order Number in Paypal Pro Details

Yeah, looks great! that would be exactly what we need :blink:

I checked both orders paid with cc and paypal, still no store name.

I've got this code on line 540 of paypaldp.php:

$options['INVNUM'] = STORE_NAME;

Thanks in advance.

19 Oct 2009, 8:49 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Seeing Order Number in Paypal Pro Details

Did the changes upload to the server successfully?

20 Oct 2009, 4:04 PM
#11
barrylegal avatar

barrylegal

New Zenner

Join Date:
Oct 2007
Posts:
39
Plugin Contributions:
0

Re: Seeing Order Number in Paypal Pro Details

Yep, the edited paypaldp.php is up there but still no store name.

I also found the same unused field code block in paypalwpp.php in the same directory & made the edit, I'll let you know if that makes a difference.

20 Oct 2009, 5:07 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Seeing Order Number in Paypal Pro Details

Editing the paypaldp.php file deals with Pro transactions. The paypalwpp.php file deals with Express Checkout transactions. (Ya, I know, the names are confusing ... it's all changed in 2.0)

22 Oct 2009, 3:34 PM
#13
barrylegal avatar

barrylegal

New Zenner

Join Date:
Oct 2007
Posts:
39
Plugin Contributions:
0

Re: Seeing Order Number in Paypal Pro Details

Hey Dr Byte- I got the store name in Invoice ID, thanks! :clap:

It's an instant payment, here's what it looks like:

Invoice ID: Giggles.com
Date: Oct 22, 2009
Time: 10:49:16 EDT
Status: Completed
Payment Type: Instant

I'm not sure which file edit did the trick, I'm going to add the code to paypalwpp.php on another of my stores and wee what happens.

23 Oct 2009, 4:36 PM
#14
barrylegal avatar

barrylegal

New Zenner

Join Date:
Oct 2007
Posts:
39
Plugin Contributions:
0

Re: Seeing Order Number in Paypal Pro Details

Aha!

Now I'm getting this error:

"Payment has already been made for this InvoiceID"

Oops!:oops:

23 Oct 2009, 9:53 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Seeing Order Number in Paypal Pro Details

That's odd ... I didn't get that in my testing.

However, you can do this instead:

$options['INVNUM'] = STORE_NAME . ' - ' . time(); 

That'll add the current time (to the millisecond) to the end of the store name, making it reasonably unique.

13 Nov 2009, 5:37 PM
#16
mteipe avatar

mteipe

New Zenner

Join Date:
Apr 2009
Location:
Portland, Oregon
Posts:
29
Plugin Contributions:
0

Re: Seeing Order Number in Paypal Pro Details

DrByte:

Sorry, not at the present time.

Is this because the order number is generated last? We really need our paypal to contain the zen cart order numbers somewhere in the transaction as well.

13 Nov 2009, 6:08 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Seeing Order Number in Paypal Pro Details

mteipe:

Is this because the order number is generated last?
Mostly, yes.