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

Braintree Blue: Support Level 2 and 3 data fields #3094

Closed

Conversation

curiousepic
Copy link
Contributor

Remote:
68 tests, 384 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Unit:
57 tests, 150 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

@curiousepic curiousepic requested a review from a team January 2, 2019 21:05
parameters[:shipping_amount] = options[:shipping_amount] if options[:shipping_amount]
parameters[:discount_amount] = options[:discount_amount] if options[:discount_amount]
parameters[:ships_from_postal_code] = options[:ships_from_postal_code] if options[:ships_from_postal_code]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the fields shipping.postal_code and shipping.country_code_alpha3 already handled elsewhere? I noticed those in the docs but don't see them built in right here.

Copy link
Contributor Author

@curiousepic curiousepic Jan 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@molbrown molbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌴

@molbrown
Copy link
Contributor

molbrown commented Jan 2, 2019

Looks like Travis has a problem with something other than these changes.

@curiousepic
Copy link
Contributor Author

curiousepic commented Jan 3, 2019

Yeah looks like the create_transaction_parameters is too long for Rubocop. Do feel like it should be broken down into sub methods; I'll look into that so we don't perpetuate this failure.

Also refactors create_transaction_parameters for length.

Remote:
68 tests, 384 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Unit:
57 tests, 150 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
@curiousepic curiousepic force-pushed the ENE_81_braintree_l2_l3 branch from 35666a0 to 6dd7969 Compare January 3, 2019 14:26
@curiousepic
Copy link
Contributor Author

@molbrown Refactored create_transaction_parameters, give it another once-over? I'm not too concerned with the Travis failures right now.

@molbrown
Copy link
Contributor

molbrown commented Jan 3, 2019

Nice, LGTM.

@curiousepic curiousepic deleted the ENE_81_braintree_l2_l3 branch January 3, 2019 16:52
whitby3001 pushed a commit to whitby3001/active_merchant that referenced this pull request Sep 3, 2019
Also refactors create_transaction_parameters for length.

Closes activemerchant#3094

Remote:
68 tests, 384 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Unit:
57 tests, 150 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
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

Successfully merging this pull request may close these issues.

2 participants