braintree / braintree-web-drop-in

Braintree Drop-in for the web
MIT License
200 stars 127 forks source link

DropinError: "message":"No payment method is available.", #873

Closed crag-a closed 1 year ago

crag-a commented 1 year ago

General information

Issue description

dropin working properly and things have been working well for years, but now when there is an existing id and customer adds a new card

we get this error:

{"name":"DropinError","message":"No payment method is available.","_braintreeWebError":{"name":"BraintreeError","code":"HOSTED_FIELDS_FAILED_TOKENIZATION","message":"The supplied card data failed tokenization.","type":"CUSTOMER","details":{"originalError":{"name":"BraintreeError","code":"CLIENT_REQUEST_ERROR","message":"There was a problem with your request.","type":"NETWORK","details":{"originalError":{"error":{"message":"Credit card is invalid"},"fieldErrors":[{"field":"creditCard","fieldErrors":[{"field":"billingAddress","fieldErrors":[{"code":"81811","field":"streetAddress","message":"Street address is required"}]}]}]},"httpStatus":422}}}}}

our relevant code:

`<?php try { $existing_braintree_customer_id = $gateway->ClientToken()->generate([ "customerId" => $braintree_customer_id['braintree_customer_id'] ]); } catch (Exception $e) { } ?>

`
hollabaq86 commented 1 year ago

Please contact Braintree Support referencing this issue so they can investigate why you're seeing increased validation errors.