Hi

I'm using a clean install of Kickstart profile with Commerce PayPal 7.x-1.x-dev. I configured the PayPal payment method for my sandbox account.

When checking out an order, this warning appears if I select PayPal WPS:

Warning: in_array() expects parameter 2 to be array, string given in commerce_line_items_quantity() (line 1335 of /home/permissi/public_html/d7/profiles/commerce_kickstart/modules/commerce/modules/line_item/commerce_line_item.module).

I'm still taken to the PayPal payment form and that works ok, but thought I'd flag up the warning. If I select the example payment method, the error doesn't appear.

As the warning suggests code in a Commerce module, I thought best to raise it here rather than against the PayPal module - hope that's right.

Cheers,
Jason

CommentFileSizeAuthor
Screenshot.png37.84 KBJason Dean
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rszrama’s picture

Project: Commerce Core » Commerce PayPal
Version: 7.x-1.0-rc3 » 7.x-1.x-dev
Component: Payment » PayPal WPS
Status: Active » Fixed

Turns out it was actually a problem in Commerce PayPal. The module just hadn't been updated to reflect this change in the Line Item API.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.