killbill-litle 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/litle/api.rb +4 -1
- data/lib/litle/models/litle_response.rb +1 -3
- data/pom.xml +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/litle/api.rb
CHANGED
@@ -180,7 +180,10 @@ module Killbill::Litle
|
|
180
180
|
|
181
181
|
if response.success and !kb_payment_id.blank? and !response.litle_txn_id.blank?
|
182
182
|
# Record the transaction
|
183
|
-
transaction = response.create_litle_transaction!(:amount_in_cents => amount_in_cents,
|
183
|
+
transaction = response.create_litle_transaction!(:amount_in_cents => amount_in_cents,
|
184
|
+
:api_call => api_call,
|
185
|
+
:kb_payment_id => kb_payment_id.to_s,
|
186
|
+
:litle_txn_id => response.litle_txn_id)
|
184
187
|
@logger.debug "Recorded transaction: #{transaction.inspect}"
|
185
188
|
end
|
186
189
|
response
|
@@ -1,5 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
1
|
module Killbill::Litle
|
4
2
|
class LitleResponse < ActiveRecord::Base
|
5
3
|
has_one :litle_transaction
|
@@ -43,7 +41,7 @@ module Killbill::Litle
|
|
43
41
|
# Litle seems to return the precision sometimes along with the txnId (e.g. 053499651324799+19)
|
44
42
|
# And sometimes it adds a ;credit
|
45
43
|
# TODO Figure out WTF is going on here
|
46
|
-
|
44
|
+
potential_litle_txn_id.to_s.split(';')[0].split('+')[0]
|
47
45
|
end
|
48
46
|
end
|
49
47
|
|
data/pom.xml
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
<groupId>com.ning.killbill.ruby</groupId>
|
26
26
|
<artifactId>litle-plugin</artifactId>
|
27
27
|
<packaging>pom</packaging>
|
28
|
-
<version>1.1.
|
28
|
+
<version>1.1.1</version>
|
29
29
|
<name>litle-plugin</name>
|
30
30
|
<url>http://github.com/killbill/killbill-litle-plugin</url>
|
31
31
|
<description>Plugin for accessing Litle as a payment gateway</description>
|