Adyen integration

105 views
Skip to first unread message

Mateusz Żaba

unread,
Nov 24, 2023, 3:58:54 AM11/24/23
to Kill Bill users mailing-list
Hello, I have an application with killbill (0.22) and adyen (plugin 0.9.0, v68) integration. I am trying to make a payment but I'm having a problem - my payment process is as follows:
1. Create an account (in killbill database)
2. Create a payment session (return sessionId and sessionData from adyen)
3. Register card using the above values ( adyen create recurringDetailReference)
4. Add a payment method in killbill (payment method is created in the adyen_payment_method table but WITHOUT recurringDetailReference)
5. Create a subscription - I expect that when creating a subscription, the payment will be made using the payment method I just added bu I get error:
"ApiException{error=class ApiError {status: 422 errorCode: 101 message: Invalid card number errorType: validation pspReference: J7K88TPMDCLZNN82 invalidFields: null}"
For testing purposes, I also tried directly inserting the recurringDetailRefference in the database and I also get an error but a slightly differenent one:
"ApiException{error=class ApiError {status: 422 errorCode: 800 message: Contract not found errorType: validation pspReference: R9WHNZ3TZ4BLNK82 invalidFields: null }"

I think the main problem is that my payment method has not been updated. Do you know which and what the process should update killbill to have correct payment contract?

Reshma Bidikar

unread,
Nov 24, 2023, 7:11:35 AM11/24/23
to Kill Bill users mailing-list
Hello!

Have you checked out our Adyen plugin documentation here? There is also an end-to-end Adyen demo here.

Regards,
Reshma

Mateusz Żaba

unread,
Nov 24, 2023, 8:04:22 AM11/24/23
to Kill Bill users mailing-list
Hello Reshma
My case is more complicated. I want to register the card first, then add a payment method and finally pay. You can take a look on my payment flow:

image (2).png

Message has been deleted

Reshma Bidikar

unread,
Dec 1, 2023, 5:59:33 AM12/1/23
to Kill Bill users mailing-list
Hello,

Thanks for sharing this diagram. I don't think registering the card details before creating the payment method in KB should make any difference. From the Adyen docs here, it looks like the error occurs as the card number is invalid. Could you please check if the card number is correct?

Regards,
Reshma

Reply all
Reply to author
Forward
0 new messages