Add integration for http://www.paymentexpress.com/Technical_Resources/Ecommerce_NonHosted/Px...

Code for this already exists in , needs porting to Commerce.

Patches / contributions / sponsorship welcome.

CommentFileSizeAuthor
#2 commerce_dps-2176443-px_post-2.patch39.7 KBxurizaemon

Comments

xurizaemon’s picture

Assigned: Unassigned » xurizaemon
xurizaemon’s picture

Status: Active » Needs review
StatusFileSize
new39.7 KB
millionleaves’s picture

I get a white screen when I try to configure the rule. Error log tells that this function is undefined: commerce_dps_currencies when called from commerce_dps_pxpost.module.

Tried changing the function name to commerce_dps_pxpay_currencies but that didn't help. I've got the multicurrency patch from 1927650, in case that's relevant.

xurizaemon’s picture

millionleaves’s picture

Thanks. That has resolved the problem i was having.

However, now I have trouble when I get to checkout and enter the credit card details. I've had a couple of test orders go through OK, but the rest of the time it either goes to a blank screen or I get the error "We received the following error processing your card. Please enter your information again or try a different card."

Note that when I use a CC of anything other than 4111111111111111, I get a message stating "You have entered an invalid credit card number." so I don't believe the issues above relate to the credit card details.

I have tried this when logged in and as an anonymous user. I have also tried it with the multicurrency module enabled and disabled. Same randomness either way.

I have the module writing to the logs so can provide further detail based on those entries if needed.

millionleaves’s picture

Update - should have looked a little harder before posting. Found this in the server logs:

PHP Fatal error: Call to undefined function commerce_cardonfile_load_multiple_by_uid() in var/www/[SITENAME]/sites/all/modules/commerce_dps/commerce_dps_pxpost.module on line 556

The function is also called in line 600.

xurizaemon’s picture

Confession time: I worked on a bunch of issues (the two mentioned above included), and the WIP is sitting over in https://github.com/xurizaemon/commerce_dps ... I haven't had feedback from that client yet (chased them up now) and turning the changes over on Github back into "nice clean" Drupal.org issues just hasn't been a priority.

So - you can test all those changes together by grabbing the code from Github, and maybe I'll just open a meta-issue here for all of the above. The relevant commits are all labelled over on Github.

If people weren't apparently running 7.x-1.x-dev as much as 7.x-1.0 I would just push the commits and wait for feedback ... you're probably several of those sites David? :D

xurizaemon’s picture

PHP Fatal error: Call to undefined function commerce_cardonfile_load_multiple_by_uid() in var/www/[SITENAME]/sites/all/modules/commerce_dps/commerce_dps_pxpost.module on line 556

Looks like a legit bug though, shouldn't be calling that unless we've checked you're using Commerce Card on File (part of #2397663: Token payment support ("card on file")).

millionleaves’s picture

I will confess that I have various sites running -dev, mainly to take advantage of the newer features you've added in recent months.

But I have several new sites in development (including the one where this issue is occurring) so will switch to the code from Github for those sites. Have just tried it on one site and all seems to be working (especially now I have Commerce Card on File enabled) but will need to test some additional use cases.

As always, appreciate your work on this module.

xurizaemon’s picture

Status: Needs review » Fixed
Related issues: +#2397663: Token payment support ("card on file")

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.