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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Payments and Payment Gateway / APIs /

This is a forum for discussing SilverStripe can-do payments and their APIs / Gateways.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

SS 2.4.x + ecommerce + Payment (DPS PxPost)


Go to End


4 Posts   3792 Views

Avatar
werehamster

Community Member, 3 Posts

19 November 2010 at 9:36am

Does anyone have a version of ecommerce and payments working with DPS PxPost? Preferable using SilverStripe 2.4.x?

I've been trying for days to no avail. I've tried every version of ecommerce (trunk, burnbright, 0.7, 0.6), silverstripe (2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.5) and payments (0.3, trunk) that I can get my hands on and I just can't make it work. I feel I must be doing something terribly terribly wrong.

He's my latest attempt:
SS 2.4.3 (clean install)
Payments 0.3.0
Ecommerce (latest trunk from code.google)

== mysite/_config.php ==

// Define which payment methods your site uses.
Payment::set_supported_methods(array(
	'DPSPayment' => 'Credit card (DPS)'
));
//setup test environment
DPSAdapter::set_pxpost_account('{PostUsername}', '{PostPassword}');

This works fine until you hit the "Place order and make payment" button whereupon you get a

Fatal error: Access to undeclared static property: DPSPayment::$cvn_mode in P:\var\www\silverstripe\2.4.3\payment\code\DPSPayment\DPSPayment.php on line 109

If I replace all occurances of self::$cvn_mode with a hardcoded true in the DPSPayment.php file, and try again then I get the following error:

Fatal error: Call to undefined method stdClass::write() in P:\var\www\silverstripe\2.4.3\payment\code\DPSPayment\DPSAdapter.php on line 515

And that's where I'm stuck.

So if anyone out there has this working I'd really like to here from you.

Thanks

Avatar
Myrdhin

Community Member, 70 Posts

24 November 2010 at 11:16am

Edited: 24/11/2010 11:17am

Hello,

I don't know if it's the same problem but i can't install the payment module with a clean installation of silverstripe 2.4.3. When i execute /dev/build, i've got the error message :

[User Error] Couldn't run query: SHOW FULL FIELDS IN "Payment" Table 'dev_ss243.payment' doesn't exist
GET /silverstripe-v2.4.3/dev/build?flush=1

Line 526 in C:\wamp\www\silverstripe-v2.4.3\sapphire\core\model\MySQLDatabase.php

Avatar
werehamster

Community Member, 3 Posts

24 November 2010 at 11:51am

@Myrdhin

SS 2.4.3 + payments (0.3) builds fine for me. It's only when I try to add the ecommerce module and use the DPS payment method that it breaks.

The error you're getting suggests the table doesn't exist in the database, but that's what dev/build is for. I'd strongly suggest trying another clean install.

This should work for you:

  • create a clean database
  • download and install SS 2.4.3
  • make sure it's running by navigating to the front page
  • download and install payments 0.3
  • run /dev/build/?flush=1

There is a possibility it has to do with the case used in the table names (I had enormous trouble deploying my site to the linux server because the MySQL table names has been made lowercase on my development machine (windows)), I had to go into the mysql config file to fix it (add "set-variable = lower_case_table_names=0" to the [mysqld] section and restart, more here http://www.parkroad.co.za/mysql-case-sensitivity-table-names-between-windows-and-linux-systems). But that's probably not your problem.

Avatar
Room9

Community Member, 19 Posts

14 February 2011 at 10:30am

Edited: 14/02/2011 10:44am

I'm getting the same problem with a clean install of 2.4.4, e-commerce 0.8.1RC and payment 0.3.

Also posted to http://www.silverstripe.org/e-commerce-module-forum/show/15518