Closed Dawoodkhorsandi closed 3 years ago
Hi
In the readme you've said that for creating a payment method at least the following attributes are required:
bt_nonce bt_customer_id payment_method_type
So I tried to add a payment method like:
curl --location --request POST 'http://example.com:8080/1.0/kb/accounts/723b0e8b-423f-4d5a-88fa-fb6f7020e125/paymentMethods' \ --header 'X-Killbill-ApiKey: key' \ --header 'X-Killbill-ApiSecret: secret' \ --header 'X-Killbill-CreatedBy: Admin' \ --header 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' \ --header 'Content-Type: application/json' \ --data-raw '{ "pluginName": "killbill-braintree", "pluginInfo": { "properties": [ { "key": "bt_nonce", "value": "fake-paypal-billing-agreement-nonce" }, { "key": "bt_customer_id", "value": "223624490" # A manually created user in BT. }, { "key": "payment_method_type", "value": "PAYPAL" } ] } }'
But it fails
{ "className": "org.killbill.billing.payment.api.PaymentApiException", "code": 7005, "message": "Failed to add payment method for account 723b0e8b-423f-4d5a-88fa-fb6f7020e125 : Unknown or expired payment_method_nonce.\nCustomer ID is required.", "causeClassName": "org.killbill.billing.payment.plugin.api.PaymentPluginApiException", "causeMessage": null, "stackTrace": [] } ____
Somehow it manages to set the nonce to NULL
Full detailed logs and descriptions exist in the kill-bill google group.
Hello @Dawoodkhorsandi What steps are you doing for getting the bt_nonce?
bt_nonce
Hello @Dawoodkhorsandi I am closing this issue due to a lack of activity.
Hi
In the readme you've said that for creating a payment method at least the following attributes are required:
So I tried to add a payment method like:
But it fails
Somehow it manages to set the nonce to NULL
Full detailed logs and descriptions exist in the kill-bill google group.