Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

using payments module with trunk (r78462)


Reply


2 Posts   1123 Views

Avatar
toddm

Community Member, 15 Posts

7 June 2009 at 8:34am

Edited: 07/06/2009 8:35am

Hi,

Trying to get E-Commerce module (r78462) working, but have two problems so far.

1) When trying to checkout, on /checkout/OrderForm:

[Warning] Invalid argument supplied for foreach()
POST /checkout/OrderForm

Line 158 in /Sites/sig/trunk/payment/code/PayPalPayment.php

Not getting the Order Items?

2) in ecommerce/_config trying to set the required fields

////Real account for paypal
PayPalPayment::setPayPalRealAccount('info@asdf.com');

////Test account for paypal
PayPalPayment::setPayPalTestAccount('info@sdaf.com');
//
////Who to send test payment from
PayPalPayment::setPayPalUseTestAccount('info@agasdf.com');

but these setters do not exist in PayPalPayment ?

---
Any suggestions much appreciated or if there is anything I can do to help, let me know?

Perhaps I should try using more more recent rev of E-Commerce mod? As I said, I downloaded r78462, but that isn't the most recent.

Todd

Avatar
toddm

Community Member, 15 Posts

7 June 2009 at 10:04am

Maybe payments module has an older or newer version of the PayPalPayment class?

Maybe I should be using the PayPalPayment object here:

http://open.silverstripe.com/ticket/1760

?

Thanks again, Todd