active_merchant icon indicating copy to clipboard operation
active_merchant copied to clipboard

litle: refund credit card token

Open rubemz opened this issue 8 years ago • 5 comments

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.

rubemz avatar Apr 03 '17 19:04 rubemz

Based on https://github.com/activemerchant/active_merchant/pull/2116, which was closed

rubemz avatar Apr 03 '17 19:04 rubemz

@davidsantoso Please Review

rubemz avatar Apr 03 '17 19:04 rubemz

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 avatar Apr 07 '17 02:04 davidsantoso

@davidsantoso sure I will add one. I've been using this in production for around a year now too.

rubemz avatar Apr 12 '17 20:04 rubemz

@davidsantoso took a bit :p but I added the integration test here 0a09118

anything else? If not I can squash it

rubemz avatar Aug 15 '17 19:08 rubemz

it has been open for 5 years... closing it 😓

rubemz avatar Mar 28 '23 18:03 rubemz