create_for_customer method is not rejecting braintree invalid-nonces
patriciojofre opened this issue · comments
Hi,
I'm creating Chargebee subscriptions (in sandbox) using a Braintree nonce, specific the fake-invalid-nonce
. When I call ChargeBee::Subscription.create_for_customer("customer_id", {})
method, this respond like a valid nonce. Instead, if I use ChargeBee::Subscription.create({})
sent nonce is rejected as expected.
Subscription.create({})
supports the nonce input via payment_method[tmp_token]. But Subscription.create_for_customer("customer_id", {})
does not support this input. Please refer the supported inputs for this API here.
All inputs not documented will be ignored if passed.
@vaibhav1510 I understand, but I think that ChargeBee::Subscription.create_for_customer("customer_id", {})
should raise a error if any not supported input is passed 👍, for me this sounds like a bug.
You can close this issue. Thanks!