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

Airwallex: QA round 2 #4377

Merged
merged 1 commit into from
Apr 4, 2022
Merged

Airwallex: QA round 2 #4377

merged 1 commit into from
Apr 4, 2022

Conversation

therufs
Copy link
Contributor

@therufs therufs commented Apr 2, 2022

Unit:
22 tests, 82 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
18 tests, 46 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Rubocop:
739 files inspected, no offenses detected

@therufs therufs self-assigned this Apr 2, 2022
@dsmcclain dsmcclain self-requested a review April 4, 2022 15:07
@dsmcclain dsmcclain marked this pull request as ready for review April 4, 2022 15:08
Copy link
Contributor

@dsmcclain dsmcclain left a comment

Choose a reason for hiding this comment

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

Looks good. I asked a question simply for my own education/posterity.

All tests pass and I will merge this later today.

post[:request_id] = options[:request_id]
post[:merchant_order_id] = options[:merchant_order_id]

response = commit(:setup, post)
raise ArgumentError.new(response.message) unless response.success?
Copy link
Contributor

Choose a reason for hiding this comment

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

This solution makes sense, and I see that you have added logic on Spreedly's end of the integration to handle this. I am curious whether you considered wrapping create_payment_intent in some logic to preempt the :sale call and return a failure response if this initial :setup call fails?

Basically I'm just wondering if there is a reason that raising an error is preferable to returning a failure response in cases where create_payment_intent fails?

@dsmcclain dsmcclain force-pushed the CE-2527-2534-2535-airwx-qa-2 branch from df2b6a8 to 8f3c32c Compare April 4, 2022 16:01
@dsmcclain dsmcclain force-pushed the CE-2527-2534-2535-airwx-qa-2 branch from 8f3c32c to 7b4a0e8 Compare April 4, 2022 16:06
@dsmcclain dsmcclain merged commit 7b4a0e8 into master Apr 4, 2022
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