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.
- data/VERSION +1 -1
- data/lib/litle/config/application.rb +12 -11
- data/pom.xml +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
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
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
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
|
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!
|
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.
|
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>
|