juspay / hyperswitch-killbill-plugin

Killbill plugin to use Hyperswitch as a payment orchastrator.
Apache License 2.0
4 stars 2 forks source link

Plugin activation not properly configured #3

Open pcfreak30 opened 3 weeks ago

pcfreak30 commented 3 weeks ago

I had to do a deep dive with a java debugger on killbill to figure out how this works and what the problem is.

It appears Apache Felix (org.apache.felix) uses some metadata/reflection in what seems to be called JNI headers? for the key Bundle-Activator.

Killbill uses this as part of its plugin system. If it is missing the plugin does not get properly registered on boot at src/main/java/org/killbill/billing/payment/provider/DefaultPaymentProviderPluginRegistry.java (killbill).

So I will be submitting a small PR to fix the pom.xml. This requires rebuilding & re-packaging the jar since the metadata is compiled into the jar itself.