-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversation
c52926e
to
80a939c
Compare
@@ -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] |
There was a problem hiding this comment.
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
There was a problem hiding this 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] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 🙃
80a939c
to
e07b267
Compare
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
e07b267
to
19d0479
Compare
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