Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

international_phone property when capturing transaction is not allowed #248

Open
taylorthurlow opened this issue Oct 14, 2024 · 0 comments

Comments

@taylorthurlow
Copy link

taylorthurlow commented Oct 14, 2024

General information

  • SDK/Library version: 4.22.0
  • Environment: Sandbox
  • Language, language version, and OS: Ruby 3.3, macOS

Issue description

When attempting to pass more data for advanced fraud protection when creating a transaction, including a value for customer[international_phone][country_code] and customer[international_phone][national_number] (docs) is raising an exception due to their presence. The linked documentation suggests that international_phone should be used instead of the deprecated customer[phone] field, but it doesn't appear that customer[international_phone] is allowed in the call to #sale.

ArgumentError:
       invalid keys: customer[international_phone][country_code], customer[international_phone][national_number]
     # /Users/taylor/.rbenv/gems/3.3.0/gems/braintree-4.22.0/lib/braintree/util.rb:123:in `verify_keys'
     # /Users/taylor/.rbenv/gems/3.3.0/gems/braintree-4.22.0/lib/braintree/transaction_gateway.rb:20:in `create'
     # /Users/taylor/.rbenv/gems/3.3.0/gems/braintree-4.22.0/lib/braintree/transaction_gateway.rb:108:in `sale'
     ...

The customer[phone] property works as expected but based on the documentation it's not really clear that it will continue to work going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant