Jump to:

113 Posts in 154 Topics by 53 members

Payments and Payment Gateway / APIs

SilverStripe Forums » Payments and Payment Gateway / APIs » SS 2.4.x + ecommerce + Payment (DPS PxPost)

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

Moderators: martimiz, Sean, Normann, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2013 Views
  • werehamster
    Avatar
    Community Member
    3 Posts

    SS 2.4.x + ecommerce + Payment (DPS PxPost) Link to this post

    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

  • Myrdhin
    Avatar
    Community Member
    67 Posts

    Re: SS 2.4.x + ecommerce + Payment (DPS PxPost) Link to this post

    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

  • werehamster
    Avatar
    Community Member
    3 Posts

    Re: SS 2.4.x + ecommerce + Payment (DPS PxPost) Link to this post

    @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.

  • Room9
    Avatar
    Community Member
    19 Posts

    Re: SS 2.4.x + ecommerce + Payment (DPS PxPost) Link to this post

    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

    2013 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.