hps / heartland-nodejs

Heartland's node.js SDK for connecting to our Portico Payment Gateway.
GNU General Public License v2.0
10 stars 12 forks source link

Pass Gateway response if Issuer response is empty #15

Open fpolowood opened 7 years ago

fpolowood commented 7 years ago

When 'list'ing the Issuer response is always favored over the Gateway response, but in the case of Capture, the Issuer is empty and Gateway is relevant. So, if Issuer is empty, return Gateway, both for the code and the text.

fpolowood commented 7 years ago

Fixes #16

slogsdon commented 7 years ago

Hi @fpolowood! Apologies for the delay, and thanks for the contribution. We'll get this reviewed and will follow up as soon as we can.