killbill-litle 1.8.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 1.8.2
2
+ Populate customer id for payments (see killbill/killbill-litle-plugin#1)
3
+
1
4
  1.8.1
2
5
  Fix first_reference_id to support AmEx transactions (see killbill/killbill-analytics-plugin#10)
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.1
1
+ 1.8.2
data/lib/litle/api.rb CHANGED
@@ -25,6 +25,9 @@ module Killbill::Litle
25
25
  # Note! The field is limited to 25 chars, so we convert the UUID (in hex) to base64
26
26
  options[:order_id] ||= Utils.compact_uuid kb_payment_id
27
27
 
28
+ # Set the account identifier to the kb_account_id
29
+ options[:customer] ||= kb_account_id
30
+
28
31
  # Set a default report group
29
32
  options[:merchant] ||= report_group_for_currency(currency)
30
33
  # Retrieve the Litle payment method
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.8.1</version>
28
+ <version>1.8.2</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>
@@ -71,6 +71,7 @@ describe Killbill::Litle::PaymentPlugin do
71
71
  response.success.should be_true
72
72
  response.message.should == 'Approved'
73
73
  response.params_litleonelineresponse_saleresponse_order_id.should == Killbill::Litle::Utils.compact_uuid(kb_payment_id)
74
+ response.params_litleonelineresponse_saleresponse_customer_id.should == pm.kb_account_id
74
75
 
75
76
  payment_response = @plugin.get_payment_info pm.kb_account_id, kb_payment_id
76
77
  payment_response.amount.should == amount
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-litle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-25 00:00:00.000000000 Z
12
+ date: 2013-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: killbill