Payment plugin killbill-stripe is not registered

515 views
Skip to first unread message

sameer....@gmail.com

unread,
Apr 5, 2015, 12:45:26 AM4/5/15
to killbill...@googlegroups.com
I'm working with Stripe plugin 0.2.3

I'm getting the error code "7028" with error message "Payment plugin killbill-stripe is not registered" when I run the following:
curl -v \
-u admin:password \
-H "X-Killbill-ApiKey: demo" \
-H "X-Killbill-ApiSecret: demo" \
-H "Content-Type: application/json" \
-H "X-Killbill-CreatedBy: admin" \
-X POST \
--data-binary '{
"pluginName": "killbill-stripe",
"pluginInfo": {
"properties": [
{
"key": "ccExpirationMonth",
"value": 12
},
{
"key": "ccExpirationYear",
"value": 2017
},
{
"key": "ccNumber",
"value": 4111111111111111
}
]
}
}' \
"http://192.168.1.1:8080/1.0/kb/accounts/82c45d70-6f63-11e4-9803-0800200c9a66/paymentMethods?isDefault=true"

Please help.
Thanks

sameer....@gmail.com

unread,
Apr 5, 2015, 2:14:39 AM4/5/15
to killbill...@googlegroups.com, sameer....@gmail.com
I figured out that the folder name under plugin folder 'killbill-stripe' was '0.2.3'. After I renamed it to 'killbill-stripe-0.2.3', the registration error got resolved.

But now when I try to add payment method, it gives this error:
code:7005
message: "failed to add payment method for account .... : undefined method 'tenant_user_api' for #<Killbill::Plugin::KillbillApi:0x1edeadb0>"

stephane brossier

unread,
Apr 5, 2015, 11:20:55 PM4/5/15
to sameer....@gmail.com, killbill...@googlegroups.com
Sameer,

Which version of Kill Bill and stripe plugin are you using?

Stéphane



--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/9e67415b-69f9-4fe9-86eb-d63b2c9b5ae5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sameer Varshney

unread,
Apr 6, 2015, 1:33:49 AM4/6/15
to stephane brossier, killbill...@googlegroups.com
Hello Stephane,

We downloaded KillBill 0.12.1 (war) and Stripe plugin 0.2.3 (from maven central).

I'm sure KillBill is running as I can do the following:
- 127.0.0.1:9090 on browser
- run request command to add account
- run request command to view catalog
- run request command to add default __EXTERNAL_PAYMENT method
- run request command to view invoices (although I get blank data as I don't have invoices added yet)

In regards to Stripe plugin, the folder structure looks like:
/var/tmp/bundles/plugins/ruby/killbill-stripe/killbill-stripe-0.2.3/gems/gems/ ...

I have stripe.yml in 2 locations:
/var/tmp/bundles/plugins/ruby/killbill-stripe/killbill-stripe-0.2.3
/var/tmp/bundles/plugins/ruby/killbill-stripe/killbill-stripe-0.2.3/gems/gems/killbill-stripe-0.2.3


Sitting under /var/tmp/bundles/plugins/ruby/killbill-stripe/killbill-stripe-0.2.3/gems/gems/killbill-stripe-0.2.3, I also executed the commands to build the project i.e.:
rvm use jruby
bundle install
jbundle install
rake killbill:clean
rake build
rake killbill:package



Thanks,
Sameer

stephane brossier

unread,
Apr 6, 2015, 10:50:03 PM4/6/15
to Sameer Varshney, killbill...@googlegroups.com
Sameer,


I think you should probably try to use the latest Kill Bill version 0.13.5 (because we had to make some changes in the stripe plugin). We have a page which helps you understand the main changes  between 0.12.x: https://github.com/killbill/killbill/wiki/Kill-Bill-version-migration-path

Stéphane

Sameer Varshney

unread,
Apr 7, 2015, 8:19:25 AM4/7/15
to stephane brossier, killbill...@googlegroups.com
 
To keep it clean, I did a re-setup.


  • Installed Jetty
  • Copied killbill-profiles-killbill-0.13.5.war as root.war under /srv/jetty/webapps folder
  • Made changes with /srv/jetty/start.ini file of the following:
    • -Dorg.killbill.dao.url=jdbc:mysql://127.0.0.1:3306/killbill
    • -Dorg.killbill.dao.user=killbill
    • -Dorg.killbill.dao.password=killbill
    • OPTIONS=Server,resources,ext,plus,annotations
  • Executed killbill sql file in MySQL
  • Unzipped stripe-plugin-0.2.3.tar.gz under /var/tmp/bundles/plugins/ruby/killbill-stripe
  • Stripe folder structure: /var/tmp/bundles/plugins/ruby/killbill-stripe/killbill-stripe-0.2.3/gems/gems/killbill-stripe-0.2.3
  • Updated  /var/tmp/bundles/plugins/ruby/killbill-stripe/killbill-stripe-0.2.3/gems/gems/killbill-stripe-0.2.3/stripe.yml file with stripe key and uncommented lines for MySQL database.
  • Executed SQL file for stripe in MySQL
  • As per https://github.com/killbill/killbill/wiki/Kill-Bill-version-migration-path:
    • Altered tenant_kvs table
    • Created tenant_broadcasts table (although it was already there but with different structure)
    • Altered bus_events_history table
    • Altered bus_ext_events_history table
  • Restarted
Checks:
  • 127.0.0.1:9090 shows killbill page
  • I can run curl command to create Tenant (with apiKey=demo apiSecret=demo)
  • I can run curl command to add an account
  • I can run curl command to view catalog
But when I run curl command to add payment method, I still get the same error:
{"className":"org.killbill.billing.payment.api.PaymentApiException","code":7005,"message":"Failed t add payment method for account d0e9f6c5-ddbf-4650-bda-457c55d9e291 : undefined method 'tenant_user_api' fr #<Killbill::Plugin::KillbillApi:0x33067726>","causeClassName":null,"causeMessage":null,"stackTrace":[]}


Thanks, Sameer


tenant-user-api-error.PNG

stephane brossier

unread,
Apr 7, 2015, 12:25:51 PM4/7/15
to Sameer Varshney, killbill...@googlegroups.com
Sameer,

Everything you did looks really good, but i am suspecting you don't have the latest jruby.jar:

Under /var/tmp/bundles/platform, you should find the jruby.jar runtime (the name has to be 'jruby.jar').

You should use the version 0.1.4

Once you replace that file you will have to restart killbill server.

(Our download instructions need some love, we are aware of it and in the process of fixing it)

Let me know if that helps,

Stéphane


Sameer Varshney

unread,
Apr 8, 2015, 9:51:08 AM4/8/15
to stephane brossier, killbill...@googlegroups.com
That worked. Its really a great help from you.
Thank a lot Stephane.
Reply all
Reply to author
Forward
0 new messages