killbill-litle 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/litle/config/application.rb +12 -11
  3. data/pom.xml +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.9
1
+ 1.0.10
@@ -14,24 +14,25 @@ end
14
14
  # http://127.0.0.1:9292/plugins/killbill-litle
15
15
  get '/plugins/killbill-litle' do
16
16
  locals = {
17
- :secure_page_url => Killbill::Litle.config[:litle][:secure_page_url],
18
- :paypage_id => Killbill::Litle.config[:litle][:paypage_id],
19
- :kb_account_id => request.GET['kb_account_id'] || '1',
20
- :merchant_txn_id => request.GET['merchant_txn_id'] || '1',
21
- :order_id => request.GET['order_id'] || '1',
22
- :report_group => request.GET['report_group'] || 'Default Report Group',
23
- :success_page => params[:successPage] || '/plugins/killbill-litle/checkout',
24
- :failure_page => params[:failurePage]
17
+ :secure_page_url => Killbill::Litle.config[:litle][:secure_page_url],
18
+ :paypage_id => Killbill::Litle.config[:litle][:paypage_id],
19
+ :kb_account_id => request.GET['kb_account_id'] || '1',
20
+ :merchant_txn_id => request.GET['merchant_txn_id'] || '1',
21
+ :order_id => request.GET['order_id'] || '1',
22
+ :report_group => request.GET['report_group'] || 'Default Report Group',
23
+ :success_page => params[:successPage] || '/plugins/killbill-litle/checkout',
24
+ :failure_page => params[:failurePage]
25
25
  }
26
26
  erb :paypage, :views => File.expand_path(File.dirname(__FILE__) + '/../views'), :locals => locals
27
27
  end
28
28
 
29
29
  post '/plugins/killbill-litle/checkout' do
30
- data = request.body.read
30
+ kb_account_id = request.POST['kb_account_id']
31
+ response_paypage_registration_id = request.POST['response_paypage_registration_id']
31
32
 
32
- halt 400, "kb_account_id and response_paypage_registration_id must be specified!" if data['kb_account_id'].blank? or data['response_paypage_registration_id'].blank?
33
+ halt 400, "kb_account_id and response_paypage_registration_id must be specified!" if kb_account_id.blank? or response_paypage_registration_id.blank?
33
34
 
34
- pm = plugin.register_token! data['kb_account_id'], data['response_paypage_registration_id']
35
+ pm = plugin.register_token! kb_account_id, response_paypage_registration_id
35
36
  redirect "/plugins/killbill-litle/1.0/pms/#{pm.id}"
36
37
  end
37
38
 
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.0.9</version>
28
+ <version>1.0.10</version>
29
29
  <name>litle-plugin</name>
30
30
  <scm>
31
31
  <connection>scm:git:git://github.com/killbill/killbill-litle-plugin.git</connection>
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.0.9
4
+ version: 1.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: