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

Adyen: Add payout endpoint #4885

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Adyen: Add payout endpoint #4885

merged 1 commit into from
Sep 27, 2023

Conversation

almalee24
Copy link
Contributor

Remote:
137 tests, 453 assertions, 11 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 91.9708% passed

Unit:
111 tests, 585 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

@almalee24 almalee24 requested a review from a team September 12, 2023 16:02
@almalee24 almalee24 force-pushed the adyen_payouts branch 2 times, most recently from c52926e to 80a939c Compare September 15, 2023 18:18
@@ -688,6 +720,23 @@ def add_3ds2_authenticated_data(post, options)
}
end

def add_fund_source(post, options)
return unless fund_source = options[:fund_source]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The also have a card object but wasn't sure that we want customers to send us card info like this

Copy link
Contributor

@curiousepic curiousepic left a comment

Choose a reason for hiding this comment

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

Nice - I am a fan of the restructing and cleanup in here too.

post[:selectedBrand] = options[:selected_brand] if options[:selected_brand]
post[:selectedBrand] ||= NETWORK_TOKENIZATION_CARD_SOURCE[payment.source.to_s] if payment.is_a?(NetworkTokenizationCreditCard)
post[:deliveryDate] = options[:delivery_date] if options[:delivery_date]
post[:merchantOrderReference] = options[:merchant_order_reference] if options[:merchant_order_reference]
post[:captureDelayHours] = options[:capture_delay_hours] if options[:capture_delay_hours]
post[:deviceFingerprint] = options[:device_fingerprint] if options[:device_fingerprint]
post[:shopperIP] = options[:ip] if options[:ip]
post[:shopperIP] = options[:shopper_ip] if options[:shopper_ip]
Copy link
Contributor

Choose a reason for hiding this comment

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

Are both of these lines meant to assign shopperIP? If so, is there a way to make this more concise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, idk why it was originally done like that. I'll update it

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! I didn't realize that was existing code that had moved. My bad 🙃

Remote:
137 tests, 453 assertions, 11 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
91.9708% passed

Unit:
111 tests, 585 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
@almalee24 almalee24 merged commit 19d0479 into master Sep 27, 2023
5 checks 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.

3 participants