Please see screenshot(): The first transaction is one without DPM configured. The second one is with DPM: not all details arrive at iatspayments.com: e.g. invoice ID, first/last name are missing.
DMP

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ruscoe’s picture

FileSize
14.68 KB

Could you check the source of the checkout form and let me know if the fields named IATS_DPM_FirstName and IATS_DPM_LastName (see screenshot) are populated?

iATS DPM form

There doesn't appear to be a field for the invoice number in the iATS documentation here, so it was never included in the module. It might be worth asking iATS support if that field isn't available or if it was just accidentally left out of the docs.

KarinG’s picture

FileSize
19.59 KB
25.94 KB

Hi,

1. I will ask iATS about a IATS_DPM_Invoice field.
2. I'm actually getting a WSOD (see screenshot above) on iatspayments.com/netgate/IATSDPMProcess.aspx [in spite of the transaction being processed in test88] so I must be missing more - perhaps...
3. I've got my Commerce panes organized such that on this final checkout page (see screenshot above): view the cart w/ total amount; view the billing information; all that's left for the user is to type in the credit card data/fields - and hit Pay Now.

<form id="commerce-checkout-form-review" accept-charset="UTF-8" method="post" action="https://www.iatspayments.com/netgate/IATSDPMProcess.aspx">
<div>
<div class="checkout-help"> Review your order before continuing.</div>
<div id="edit-checkout-review" class="checkout_review form-wrapper">
<table class="checkout-review">
<tbody>
<tr class="pane-title odd odd">
<tr class="pane-data even even">
<tr class="pane-title odd odd">
<tr class="pane-data even even">
<tr class="pane-title odd odd">
<tr class="pane-data even even">
</tbody>
</table>
</div>
<fieldset id="edit-commerce-payment" class="commerce_payment form-wrapper">
<fieldset id="edit-buttons" class="checkout-buttons form-wrapper">
<input type="hidden" value="form-qTwhhS3rkDaF005XQ3IdKQXJddohZwwwKH06SQcFJJg" name="form_build_id">
<input type="hidden" value="QGRGBeMx_gABxgHJZ2wZdE5l3q75NkGUvqEFkmhiwNk" name="form_token">
<input type="hidden" value="commerce_checkout_form_review" name="form_id">
</div>
</form>
ruscoe’s picture

Looks like the logic making sure the first name and last name fields had values was not being executed for DPM payments. This patch fixes it.

ruscoe’s picture

Status: Active » Needs review
ruscoe’s picture

Updated patch to include DPM invoice number field.

Greg Boggs’s picture

Hi Karin,

To complete the DPM payment I needed this patch: https://www.drupal.org/node/2538736. I believe the issue with the test server not redirecting is that the iATS server needs to be able to load your redirect URL. I set up my test site on a public web server with a valid SSL certificate and the payments worked as I expected them to.

I'll be creating a new release shortly,
~Greg

KarinG’s picture

Greg - looks like you're referencing an 'won't fix' issue for Frequently Asked Questions Project - what patch did you mean to point me to?

I'm testing this on live server (that has processed 24k transactions with iATS the 'old' way) - it has valid SSL - going straight into the client's iATS account (not using any of the iATS test accounts). I've gone as far as specifically setting the access_callback for the direct_post_relay menu item to => TRUE. And I get there as anonymous - but commerce is (correctly) telling me I need to try get some items in my cart first.

New release: you saw the double || bug / patch by Dan? Found another bug yesterday - that I've not filed an issue for yet (DPM is not honoring the service [credit card type] settings. Will do that shortly.

Greg Boggs’s picture

Thanks. Sorry about that. I've corrected the link.

KarinG’s picture

It's now referencing the issue I created yesterday (after you posted #6): "Service settings in config are ignored when using DPM checkout." https://www.drupal.org/node/2538736

Again - if you're trying to reference: https://www.drupal.org/files/issues/commerce_iats-dpm-comment-double-pip... - I've already applied that. Unfortunately it doesn't fix the issue of getting stuck with wsod on iatspayments.com

  • Greg Boggs committed 562defb on 7.x-2.x authored by ruscoe
    Issue #2525940 by ruscoe: DPM: not all details arrive at iatspayments....
KarinG’s picture

Name + invoice ID are both correctly relayed in latest release: 7.x-2.11

Greg Boggs’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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