Post by netpox » Wed Jul 28, 2010 4:52 am

I installed PayPal website payment pro and it works but it doesnt collect the shipping information from my customers. When i go to paypal it shows the payment, but the shipping information is not available. I would like to print my labels right from paypal.
Last edited by i2Paq on Thu Jan 06, 2011 4:02 pm, edited 1 time in total.
Reason: Topic moved

Newbie

Posts

Joined
Fri Jul 23, 2010 11:54 pm

Post by jel » Thu Jan 06, 2011 3:40 am

I'm having this same problem has anyone been successful in getting this to work?

jel
Newbie

Posts

Joined
Thu Jan 06, 2011 3:39 am

Post by jel » Mon Jan 10, 2011 4:04 pm

bump. I think this is just a matter of sending the correct vars over but it's not working for me

jel
Newbie

Posts

Joined
Thu Jan 06, 2011 3:39 am

Post by jel » Thu Jan 20, 2011 6:27 pm

bump, noone uses PayPal to print shipping labels? I'd think others would be having this issue.

jel
Newbie

Posts

Joined
Thu Jan 06, 2011 3:39 am

Post by jbenalluch » Sun Jan 30, 2011 6:29 am

I seem to have fixed this issue by using the following document:

https://www.x.com/docs/DOC-1367#id0864F ... 864H804030

I added the following to catalog/controller/payment/pp_pro.php:

Code: Select all

// After line 140
'COUNTRYCODE'    => $order_info['payment_iso_code_2'],
			// added code
			'SHIPTONAME'         => $order_info['payment_firstname']." ".$order_info['payment_lastname'],
			'SHIPTOSTREET'         => $order_info['payment_address_1'],
			'SHIPTOCITY'           => $order_info['payment_city'],
			'SHIPTOSTATE'          => ($order_info['payment_iso_code_2'] != 'US') ? $order_info['payment_zone'] : $order_info['payment_zone_code'],
			'SHIPTOZIP'            => $order_info['payment_postcode'],
			'SHIPTOCOUNTRYCODE'    => $order_info['payment_iso_code_2'],
			// end
			'CURRENCYCODE'   => $order_info['currency']
Hope this helps.
It seemed to haved worked for me as far as getting the shipping info to Paypal Website Payments Pro.

Newbie

Posts

Joined
Sun Jan 30, 2011 6:24 am

Post by tampadesign » Tue Feb 01, 2011 8:11 am

I could have sworn I had some posts in this thread. Must have been deleted by the mods?

Anyway, thanks jben, this is the same thing I found out after going through the API docs. You beat me to it. :D

Freelance Web Designer & Developer
tampadesign.net


Newbie

Posts

Joined
Thu Jan 06, 2011 6:56 am

Post by petloverof5 » Wed Jun 15, 2011 1:44 am

I'm using version 1.5.0.4. What line do you insert this code after on that one? Also, does this send them to the Paypal site to finish checking out?

Newbie

Posts

Joined
Wed Jun 15, 2011 1:41 am

Post by aronx69 » Thu Aug 11, 2011 12:15 pm

Might want to use the 'shipping_' vars instead of 'payment_' vars for the shipto variables...

Code: Select all

// added code
         	'SHIPTONAME'         => $order_info['shipping_firstname']." ".$order_info['shipping_lastname'],
         	'SHIPTOSTREET'         => $order_info['shipping_address_1']." ".$order_info['shipping_address_2'],
         	'SHIPTOCITY'           => $order_info['shipping_city'],
         	'SHIPTOSTATE'          => ($order_info['shipping_iso_code_2'] != 'US') ? $order_info['shipping_zone'] : $order_info['shipping_zone_code'],
         	'SHIPTOZIP'            => $order_info['shipping_postcode'],
         	'SHIPTOCOUNTRYCODE'    => $order_info['shipping_iso_code_2'],
         	// end

If you love your dog, you'll get them an awesome dog bandana (or two) @ BITE Bandanas.


Newbie

Posts

Joined
Thu Aug 11, 2011 12:13 pm

Post by ariel » Sun Mar 04, 2012 7:20 am

Does anyone know if this change has been implemented in version 1.5.2?

Newbie

Posts

Joined
Sat Mar 03, 2012 8:34 am

Post by simplepages » Tue Apr 30, 2013 8:22 pm

i got this issue on OC 1.5.4 with PayPal standard, on paypal page only shown sub-total not total price with shipping cost.
tried many way still no luck.

anyone can help me please

Newbie

Posts

Joined
Tue Apr 30, 2013 5:37 pm

Post by PlugGuy » Fri May 03, 2013 3:43 am

If someone could just post up some examples of line code for SHIPPINGAMT, TAXAMT and DESC I think most of us could run with it.

I've posted about this before: http://forum.opencart.com/viewtopic.php?f=113&t=98969

Yet even some of the developers I reached out to never came through. Still waiting.

This can't be that hard to do. What sucks is PayPal also has it up their sleeves but won't release code - the x.com site is BS and shows just text and a few descriptions, but no actual code.

If there are any extension/mod developers out there who seriously want to enhance this, please contact me or write it, post it, and we'll be buying!

Hope someone can come through. We spend a ridiculous amount of time on this every week because the API call lacks these items.

Bummed.

Chief Plug Guy
BumperPlugs.com


User avatar
Active Member

Posts

Joined
Fri Jan 25, 2013 11:11 pm

Who is online

Users browsing this forum: No registered users and 5 guests