litle: refund credit card token
This PR adds enhances the Little Gateway refund method by allowing refunding a tokenized credit card and passing an optional expiration date on purchase.
This PR is adding the purchase expiration date when using a credit card token, because even the docs saying it is optional some banks requires the expiration date in order to complete the purchase transaction.
See https://www.vantiv.com/content/dam/vantiv/developers/Vantiv_LitleXML_Reference_Guide_XML10.1_V1.1.pdf in 4.162 expDate:
Although the schema defines the expDate element as an optional child of the card, token and paypage elements, you must submit a value for card-not-present transactions.
Based on https://github.com/activemerchant/active_merchant/pull/2116, which was closed
@davidsantoso Please Review
Thanks for the update @rubemz. Wondering if you're able to add a remote test to show that this works against the Litle sandbox?
@davidsantoso sure I will add one. I've been using this in production for around a year now too.
@davidsantoso took a bit :p but I added the integration test here 0a09118
anything else? If not I can squash it
it has been open for 5 years... closing it 😓