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

DPS Checkout error - Undefined index: value


Reply

3 Posts   1858 Views

Avatar
keeny

1 April 2009 at 10:48am Community Member, 48 Posts

Hi All,

I've set up ecommerce to use DPS payments. All is well until I get to the Checkout page. When I click Place order and make payment... I get the following error...

Any ideas?

Many thanks!

[Notice] Undefined index: value
POST /~serendip/checkout/OrderForm

Line 1 in /home/serendip/public_html/ecommerce/code/payments/DPSPayment.php(198) : eval()'d code

Warning: file(/home/serendip/public_html/ecommerce/code/payments/DPSPayment.php(198) : eval()'d code) [function.file]: failed to open stream: No such file or directory in /home/serendip/public_html/sapphire/dev/Debug.php on line 315

Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home/serendip/public_html/sapphire/dev/Debug.php on line 318

Warning: array_slice() [function.array-slice]: The first argument should be an array in /home/serendip/public_html/sapphire/dev/Debug.php on line 322
Source

Warning: Invalid argument supplied for foreach() in /home/serendip/public_html/sapphire/dev/DebugView.php on line 135

Avatar
keeny

1 April 2009 at 12:21pm Community Member, 48 Posts

This is now solved at [url]http://open.silverstripe.com/ticket/3815[/url]

------

On the Checkout page, when I click 'Place order and make payment' I get the following error...

[Notice] Undefined index: value POST /~serendip/checkout/OrderForm

In the repsonse received from DPS if an xml element has no value, e.g. <CardName></CardName>

In this case, the xml $values array will simply not have the key 'value', rather than a key 'value=null' or similar.

To fix if just added array_key_exists() to line where the error occurs.

Avatar
kcd

29 June 2009 at 10:01am Community Member, 54 Posts

It works!?!

Kind of conducting a survey ... http://silverstripe.org/e-commerce-module-forum/show/263539#post263539