Authorize.net Plugin Properties

55 views
Skip to first unread message

Hemal Majethiya

unread,
Aug 30, 2021, 1:20:52 AM8/30/21
to Kill Bill users mailing-list

Hello all,

I have successfully installed authorize.net plugin with killbill and its in running state, but somehow i am unable to add it as payment method for account.

I have downloaded and installed jar file from : https://jar-download.com/?search_box=authorize-net-plugin

and when i try to add payment method i am getting error as mentioned in attached screen shot.
I think its may be because of invalid properties. Can anybody help with what properties it should be?

Thanks a lot in advance.Screenshot from 2021-08-30 10-50-26.png

Hemal Majethiya

unread,
Aug 31, 2021, 1:15:26 AM8/31/21
to Kill Bill users mailing-list
For reference killbill out logs are as below:

2021-08-31T05:14:44,206+0000 lvl='WARN', log='ControlPluginRunner', th='Plugin-th-48', xff='', rId='c63841f9-6833-42a5-960e-a742ef7b41a9', tok='c63841f9-6833-42a5-960e-a742ef7b41a9', aRId='3', tRId='1', Skipping unknown payment control plugin killbill-authorize-net when fetching results
2021-08-31T05:14:44,217+0000 lvl='WARN', log='LoggingResponse', th='catalina-exec-22', xff='', rId='c63841f9-6833-42a5-960e-a742ef7b41a9', tok='c63841f9-6833-42a5-960e-a742ef7b41a9', aRId='3', tRId='1', Bad request
org.killbill.billing.payment.api.PaymentApiException: Failed to add payment method for account 146f73a3-a92d-4bc2-8fe8-454f2640cd65 : Unable to add payment method for kbPaymentMethodId 8c1a6397-a5b8-48a8-aa10-bceac5d27f43
    at org.killbill.billing.payment.core.PaymentMethodProcessor$1.doOperation(PaymentMethodProcessor.java:154)
    at org.killbill.billing.payment.core.PaymentMethodProcessor$1.doOperation(PaymentMethodProcessor.java:127)
    at org.killbill.billing.payment.core.ProcessorBase$WithAccountLock.processAccountWithLock(ProcessorBase.java:179)
    at org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:162)
    at org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:143)
    at org.killbill.billing.payment.dispatcher.CallableWithRequestData.call(CallableWithRequestData.java:69)
    at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.killbill.billing.payment.plugin.api.PaymentPluginApiException: Unable to add payment method for kbPaymentMethodId 8c1a6397-a5b8-48a8-aa10-bceac5d27f43
    at com.womply.billing.killbill.plugins.AuthorizeNetPaymentPluginApi.addPaymentMethod(AuthorizeNetPaymentPluginApi.java:129)
    at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler$1.execute(ContextClassLoaderHelper.java:144)
    at org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:37)
    at org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler.handleInvocation(ContextClassLoaderHelper.java:141)
    at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:86)
    at com.sun.proxy.$Proxy166.addPaymentMethod(Unknown Source)
    at org.killbill.billing.payment.core.PaymentMethodProcessor$1.doOperation(PaymentMethodProcessor.java:138)
    ... 11 common frames omitted
Caused by: java.lang.RuntimeException: Can not find custom field "auth-net-profile-id" for account id = 146f73a3-a92d-4bc2-8fe8-454f2640cd65
    at com.womply.billing.killbill.plugins.AuthorizeNetService.getAuthNetCustomerProfileIdFromCustomFields(AuthorizeNetService.java:170)
    at com.womply.billing.killbill.plugins.AuthorizeNetService.addPaymentMethod(AuthorizeNetService.java:156)
    at com.womply.billing.killbill.plugins.AuthorizeNetPaymentPluginApi.addPaymentMethod(AuthorizeNetPaymentPluginApi.java:127)
    ... 20 common frames omitted
2021-08-31T05:14:44,218+0000 lvl='INFO', log='LoggingFilter', th='catalina-exec-22', xff='', rId='c63841f9-6833-42a5-960e-a742ef7b41a9', tok='c63841f9-6833-42a5-960e-a742ef7b41a9', aRId='3', tRId='1', 1126 * Server out-bound response
1126 < 400
1126 < Content-Type: application/json
1126 <

Pierre-Alexandre Meyer

unread,
Aug 31, 2021, 1:53:39 AM8/31/21
to Hemal Majethiya, Kill Bill users mailing-list
Hello,

While I am not familiar with this plugin, this seems to be the error:

On Tue, Aug 31, 2021 at 6:15 AM Hemal Majethiya <he...@pardypanda.com> wrote:
Caused by: java.lang.RuntimeException: Can not find custom field "auth-net-profile-id" for account id = 146f73a3-a92d-4bc2-8fe8-454f2640cd65
    at com.womply.billing.killbill.plugins.AuthorizeNetService.getAuthNetCustomerProfileIdFromCustomFields(AuthorizeNetService.java:170)
    at com.womply.billing.killbill.plugins.AuthorizeNetService.addPaymentMethod(AuthorizeNetService.java:156)
    at com.womply.billing.killbill.plugins.AuthorizeNetPaymentPluginApi.addPaymentMethod(AuthorizeNetPaymentPluginApi.java:127)
    ... 20 common frames omitted
 
It looks like the plugin expects the custom field auth-net-profile-id on the account (which points to the Authorize.NET customer profile id). Did you set it?

Message has been deleted

Pierre-Alexandre Meyer

unread,
Aug 31, 2021, 2:11:08 AM8/31/21
to Hemal Majethiya, Kill Bill users mailing-list
The error is now:

On Tue, Aug 31, 2021 at 7:06 AM Hemal Majethiya <he...@pardypanda.com> wrote:
Caused by: java.lang.RuntimeException: Empty Authorize.Net payment profile id for kbAccountId = b60f981a-4b13-4293-8aab-3f018ae6dd82, kbPaymentMethodId = 2a894fee-6fe4-4813-982d-179a9bf92f49
at com.womply.billing.killbill.plugins.db.AuthorizeNetDAOImpl.verifyPaymentMethodProperties(AuthorizeNetDAOImpl.java:100)
at com.womply.billing.killbill.plugins.db.AuthorizeNetDAOImpl.addPaymentMethod(AuthorizeNetDAOImpl.java:74)
at com.womply.billing.killbill.plugins.AuthorizeNetService.addPaymentMethod(AuthorizeNetService.java:158)

at com.womply.billing.killbill.plugins.AuthorizeNetPaymentPluginApi.addPaymentMethod(AuthorizeNetPaymentPluginApi.java:127)
... 20 common frames omitted

Are you sending the right plugin properties?


--
Pierre

Hemal Majethiya

unread,
Aug 31, 2021, 2:17:32 AM8/31/21
to Kill Bill users mailing-list
Again thanks for quick response. I am just sending
authMetPaymentProfileId plugin property. Do i need to add more like first_name,last_name etc?
I have attached postman request screen shot for reference:

Screenshot from 2021-08-31 11-44-31.png

Pierre-Alexandre Meyer

unread,
Aug 31, 2021, 2:26:31 AM8/31/21
to Hemal Majethiya, Kill Bill users mailing-list
You need to specify the following property: authorize_net_payment_profile_id (not authMetPaymentProfileId).

Kind regards,

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any views or opinions expressed are solely those of the sender and do not necessarily represent those of Pardy Panda Studios. If you have received this email in error please notify the sender.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/8d11b711-5adb-4574-808f-3077dd6f3a97n%40googlegroups.com.


--
Pierre
Message has been deleted

Hemal Majethiya

unread,
Aug 31, 2021, 2:29:45 AM8/31/21
to Kill Bill users mailing-list
It worked. Thank you so much for help and you valuable time.

Pierre-Alexandre Meyer

unread,
Aug 31, 2021, 2:40:46 AM8/31/21
to Hemal Majethiya, Kill Bill users mailing-list
Awesome!

If you identified gaps or mistakes in the plugin documentation README, would you mind sending a pull request to address them? This would be highly valuable to the greater community!

Kind regards,

Hemal Majethiya

unread,
Aug 31, 2021, 6:40:38 AM8/31/21
to Kill Bill users mailing-list
Sure I will. Sorry for late response. I got excited after adding authorize.net as payment getway method.

But i am still unable to charge account with Killbill. Somehow other properties like firstName, lastName card last 4 digits are not getting fetched.

Please let me know if you can help me with this as well.
Thanks a lot in advance

Account-Details-Authorize-net-as-payment-gateway.png

Server logs:

95c1d95782 kbAccountId = 6a466a4e-02b1-4453-a47d-09b6f3e16afa
    at org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperation(PaymentOperation.java:182)
    at org.killbill.billing.payment.core.sm.payments.PaymentOperation.doSimpleOperationCallback(PaymentOperation.java:138)
    at org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperationCallback(PaymentOperation.java:82)
    at org.killbill.automaton.DefaultOperation.run(DefaultOperation.java:58)
    at org.killbill.automaton.DefaultState.runOperation(DefaultState.java:95)
    at org.killbill.billing.payment.core.sm.PaymentAutomatonRunner.runStateMachineOperation(PaymentAutomatonRunner.java:246)
    at org.killbill.billing.payment.core.sm.PaymentAutomatonRunner.run(PaymentAutomatonRunner.java:218)
    at org.killbill.billing.payment.core.PaymentProcessor.performOperation(PaymentProcessor.java:329)
    at org.killbill.billing.payment.core.PaymentProcessor.performOperation(PaymentProcessor.java:230)
    at org.killbill.billing.payment.core.PaymentProcessor.createPurchase(PaymentProcessor.java:118)
    at org.killbill.billing.payment.core.sm.control.PurchaseControlOperation.doCallSpecificOperationCallback(PurchaseControlOperation.java:40)
    at org.killbill.billing.payment.core.sm.control.OperationControlCallback$1.doOperation(OperationControlCallback.java:120)
    at org.killbill.billing.payment.core.sm.control.OperationControlCallback$1.doOperation(OperationControlCallback.java:84)

    at org.killbill.billing.payment.core.ProcessorBase$WithAccountLock.processAccountWithLock(ProcessorBase.java:179)
    at org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:162)
    at org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:143)
    at org.killbill.billing.payment.dispatcher.CallableWithRequestData.call(CallableWithRequestData.java:69)
    at org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:48)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.killbill.billing.payment.plugin.api.PaymentPluginApiException: Unable to perform purchasePayment for kbPaymentMethodId = 5e4bb7d7-21ca-423d-a9d9-4d4cabd7a505, kbTransactionId = 007974d3-34f2-4be8-b5fe-d995c1d95782 kbAccountId = 6a466a4e-02b1-4453-a47d-09b6f3e16afa
    at com.womply.billing.killbill.plugins.AuthorizeNetPaymentPluginApi.purchasePayment(AuthorizeNetPaymentPluginApi.java:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler$1.execute(ContextClassLoaderHelper.java:144)
    at org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:37)
    at org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler.handleInvocation(ContextClassLoaderHelper.java:141)
    at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:86)
    at com.sun.proxy.$Proxy166.purchasePayment(Unknown Source)
    at org.killbill.billing.payment.core.sm.payments.PurchaseOperation.doCallSpecificOperationCallback(PurchaseOperation.java:47)
    at org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperation(PaymentOperation.java:153)
    ... 22 common frames omitted
Caused by: java.lang.RuntimeException: No plugin properties defined for tenantId = 0aeb2eac-8c7d-48e0-9583-21a2c8e4397d
    at com.womply.billing.killbill.plugins.authentication.AuthorizeNetConfigurableHandler.getConfigurable(AuthorizeNetConfigurableHandler.java:55)
    at com.womply.billing.killbill.plugins.authentication.AuthorizeNetAuthenticationService.getAuthenticationForTenant(AuthorizeNetAuthenticationService.java:36)
    at com.womply.billing.killbill.plugins.AuthorizeNetService.purchasePayment(AuthorizeNetService.java:195)
    at com.womply.billing.killbill.plugins.AuthorizeNetPaymentPluginApi.purchasePayment(AuthorizeNetPaymentPluginApi.java:70)
    ... 33 common frames omitted

Hemal Majethiya

unread,
Sep 1, 2021, 1:26:11 AM9/1/21
to Kill Bill users mailing-list
Ignore it. I have resolved payment error. But somehow it is still not fetching other card and profile related information like card type, card ending 4 digits, name and email.
Reply all
Reply to author
Forward
0 new messages