Author Topic: PayPal doesn't receive items purchased - only amount charged  (Read 6855 times)

Offline kerryww

  • Posts: 16
PayPal doesn't receive items purchased - only amount charged
« on: August 25, 2012, 01:28:38 PM »
I'm running WSB 2.8.2 / Bakery 1.5.7 with PayPal

When I submit an order to PayPal the items ordered fail to appear in the PayPal Order Summary. But, the total cost including tax and shipping appear.

When the order is submitted for payment the buyers account is charged for the amount and they receive an email telling them they've been charged for the amount but the items they've been charged for are not listed in the email receipt.

In the WSB Order Administration page the order number and customers are listed with correct details of cost and items purchased.

For some unknown reason PayPal is not receiving the items.

The site is at http://goo.gl/r5YtN

TIA for any suggestions

Kerry

freeSbee

  • Guest
Re: PayPal doesn't receive items purchased - only amount charged
« Reply #1 on: August 25, 2012, 03:26:26 PM »
Hi Kerry

As you described Bakery does only pass the aggregated items to PayPal. If you need to pass individual items of the entire cart you have to modify the Bakery PayPal payment method.

Open the 2 module Bakery files:
  • /payment_methods/paypal/processor.php
  • /view_summary.php

Unfortunately data of items in the cart is not stored in the session. So first you have to get all item data from db order table using code similar to the one in the file view_summary.php starting at about line 72.

Then add the requested PayPal variables to the $post_data (see processor.php starting at about line 84) by looping through all items of the cart.

Find all list of all PayPal HTML variables for individual items at:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HF080O3

Regards Christoph

Offline kerryww

  • Posts: 16
Re: PayPal doesn't receive items purchased - only amount charged
« Reply #2 on: August 26, 2012, 02:11:14 AM »
Thanks Christoph,

I can now get that sorted.

Part of my problem was that the customer wasn't receiving a confirmation email from WSB backend. I've been scratching my head and losing lots of hair over this only to realise that my client had gone into the backend of PayPal and deleted the email address that was linked to the business setup information.

Thanks again for your help.

Kerry
« Last Edit: August 26, 2012, 03:46:03 AM by kerryww »

Offline ima

  • Posts: 7
Re: PayPal doesn't receive items purchased - only amount charged
« Reply #3 on: January 09, 2013, 11:25:51 AM »
I am having the same problem - items aren't listed at Paypal, just the amount, so I can't work out what's being ordered.

Can anyone, pleeeease, post what needs changing in those two files mentioned above? can you post the actual code? I can't seem to work out how to follow your instructions, sorry.

NorHei

  • Guest
Re: PayPal doesn't receive items purchased - only amount charged
« Reply #4 on: January 12, 2013, 07:29:42 PM »
Is this still an issue whith 1.6.0 ??

Then please :
Code: [Select]
Can anyone, pleeeease, post what needs changing in those two files mentioned above? can you post the actual code? I can't seem to work out how to follow your instructions, sorry.
 :lol: