Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
DPS has introduced PXPay 2.0. The service is similar to PXPay but provides token billing & the option of completely customised CSS on the payment page.
http://www.paymentexpress.com.au/Technical_Resources/Ecommerce_Hosted/Px...
The implementation is exactly the same as PXPay except for the POST URL. This should be provided as an optional payment method setting.
Comment | File | Size | Author |
---|---|---|---|
#12 | commerce_dps-pxpay2-2265029-12.patch | 1.62 KB | berenddeboer |
Comments
Comment #1
heathstannardAttached patch allows for selection of the PXPay 2.0 service within the PXPay payment settings.
Comment #2
heathstannardComment #3
xurizaemonHere's a re-roll to keep this live in the meantime. For me, it's not working (transaction is not completed on checkout) but I suspect that's due to PXPay 2 not being enabled on my dev a/c.
Comment #4
John Pitcairn CreditAttribution: John Pitcairn commentedPatch no longer applies.
The implementation is not exactly the same apart from the POST URL.
The Generate Request response is also different:
PxPay 1:
PxPay 2:
Note the absence of a query string in the latter. The response to
commerce_dps_pxpay_generate_request($transaction)
needs to be handled differently for PxPay 2 to avoid an "invalid index" error.Comment #5
John Pitcairn CreditAttribution: John Pitcairn commentedPatch updated for current dev, and the Generate Request response is checked for the presence of a query before doing anything with it.
Comment #6
norwegian.blue CreditAttribution: norwegian.blue commentedI'm somewhat confused by all this
I am using 7.x-1.0 (not dev) with two production systems using PxPay2, and both work fine.
I'm developing another now, and with 7.x-1.0 I get a "Success" back from PxPay2 (I've had my Dev account altered to a PxPay2 account) though I get an error in the log "checkout//payment/return/ - page not found"
Payment status is success though and order balance is 0
When I try to use the patched dev version of the module, I get payment declined, but no error in the log.
Why is the patch required? PxPay2 seems to work fine (almost) with the released version of the module.
I do have an issue in that a rule I create with a condition that order balance <= 0 doesn't match the condition, despite the balance being 0 when I check the order. Is this somehow related to the error I get in the log?
(Maybe I should be filing a new issue against the released version? Sorry if this is in the wrong place)
Comment #7
John Pitcairn CreditAttribution: John Pitcairn commentedAt the very least, I need to patch current dev with #2658546: Invalid transaction amount error, otherwise I get an invalid transaction request in the log, and an endless loop on payment redirect.
After that patch, the transaction succeeds but I still need this one to fix an
Undefined index: query
log message, which is due to the changed URL format for PxPay 2.Comment #8
xurizaemonSpoke to DPS on this - my account (which is tested fairly often) is PxPay2 and works with the current (dev) code.
DPS advised that if you land on the PxPay1 URL, you will be transparently redirected to the new URL if you have a PxPay2 account. This explains why I hadn't observed missing functionality myself - they are taking care of the first part of the patch attached.
No harm in us offering the option while there's a transition in place; apparently the only people still on PxPay1 are merchants who have specifically requested to do so.
Thanks - will review this change - not sure if I need to (or want to) request a PxPay1 a/c to test that edge case .....
Comment #9
xurizaemonNo harm in adding this isset, but I am still seeing commerce_dps_pxpay_generate_request() return a URL with query params here. Which appears to NOT be what you're seeing @JohnPitcairn? I get back -
https://sec.paymentexpress.com/pxmi3/pxpay1.aspx?userid=XXXXXXXXXXXX&req...
(I believed DPS when they told me I'm on PxPay2 but that pxpay1.aspx looks pretty suss.)
Comment #10
John Pitcairn CreditAttribution: John Pitcairn commentedUmmm ... yes it does. I definitely get a URL without a query.
Comment #11
xurizaemonOK, seems like our two PxPay 2 accounts are behaving differently, & we need to understand why.
Mine is a developer a/c, and has been upgraded from 1 to 2.
Will come back to this and work with you to identify what's behaving differently :D
Comment #12
berenddeboer CreditAttribution: berenddeboer commentedPatch reroll against latest dev.
I also have a dev account that's upgraded, not seeing query. Have you explicitly saved DPS settings again?
Comment #13
berenddeboer CreditAttribution: berenddeboer commentedComment #14
danwonac CreditAttribution: danwonac commentedPatch #12 works for me against latest dev version, thanks Berend.
Comment #15
xurizaemonSpoke to DPS today, hoping to get this committed shortly, just want to confirm my account is *really* acting like a PXPay2 account before I do so.
Update to come ...
Comment #17
xurizaemonDPS confirm the account I'm testing with is PXPay2.
Marking this closed and will cut a release of Commerce DPS accordingly.