public
Description: Active Merchant is a simple payment abstraction library used in and sponsored by Shopify. It is written by Tobias Luetke, Cody Fauser, and contributors. The aim of the project is to feel natural to Ruby users and to abstract as many parts as possible away from the user to offer a consistent interface across all supported gateways.
Homepage: http://activemerchant.org
Clone URL: git://github.com/Shopify/active_merchant.git
Return transaction id for PayPal refunds [#11 state:resolved]
codyfauser (author)
Wed Dec 31 09:28:33 -0800 2008
commit  612ef9657d39585df555498649272727529251a6
tree    45930ce222a51a900f8f79a7594158503ae1f1a5
parent  d91e2c504359327e469df3d9f05d908aef898e91
...
1
2
 
3
4
5
...
1
2
3
4
5
6
0
@@ -1,5 +1,6 @@
0
 = ActiveMerchant CHANGELOG
0
 
0
+* Return transaction id for PayPal refunds [jxtps435]
0
 * Allow storage of e-checks with BraintreeGateway [jimiray]
0
 * Add test URL to PayJunction gateway [boomtowndesigngroup]
0
 * More robust parsing for Wirecard gateway [Soleone]
...
310
311
312
313
 
314
315
316
...
310
311
312
 
313
314
315
316
0
@@ -310,7 +310,7 @@ module ActiveMerchant #:nodoc:
0
       end
0
       
0
       def authorization_from(response)
0
-        response[:transaction_id] || response[:authorization_id] # latter one is from reauthorization
0
+        response[:transaction_id] || response[:authorization_id] || response[:refund_transaction_id] # middle one is from reauthorization
0
       end
0
       
0
       def successful?(response)

Comments