ActiveMerchant::PaypalExpressGateway does nothing with item[:sku], instead we should set the confusingly-named item[:number] from the underlying Paypal api: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECCustomizing

This commit is contained in:
edslocomb 2012-07-13 16:55:48 -07:00 committed by Ryan Bigg
parent d9873ff63f
commit ce3d71193f
1 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ module Spree
price = (item.price * 100).to_i # convert for gateway
{ :name => item.variant.product.name,
:description => (item.variant.product.description[0..120] if item.variant.product.description),
:sku => item.variant.sku,
:number => item.variant.sku,
:quantity => item.quantity,
:amount => price,
:weight => item.variant.weight,