Could you please help me figure out if it possible to implement something like this? Are there any plugins I can use as an example? What part should be done in payment plugin and what part should be in payment control plugin?
PS: Is anyone here could do such plugin for us (we will pay of course). If so, please contact me by email.
Could you please help me figure out if it possible to implement something like this? Are there any plugins I can use as an example? What part should be done in payment plugin and what part should be in payment control plugin?
It seems I can do it with
@kb_apis.admin_payment_api.fix_payment_transaction_state()
The problem is that "admin_payment_api" is not initialized.
https://github.com/killbill/killbill-plugin-framework-ruby/blob/9d05745a171ed8ed298e418178ef4f2dabe35e5a/lib/killbill/gen/api/osgi_killbill.rb#L191
I believe it is because of permissions. I've tried to login with @kb_apis.security_api.login() but doing so in "get_payment_info" is too late and in "initialize" is too early. Where should I login as admin in the plugin to be able to use admin_payment_api? Is it the right decision to login in the plugin or is there any other way to change transaction status to "success"?