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

EIT-2304: Feature - Cash App Orders #184

Merged
merged 19 commits into from Mar 10, 2023
Merged

Conversation

ScottAntonacAP
Copy link
Collaborator

Summary of Changes

  • Add methods to sign and validate an Afterpay Cash App Order
  • Pass back from the SDK data to be used when creating a Cash App payment

Copy link
Collaborator

@pedronveloso pedronveloso left a comment

Choose a reason for hiding this comment

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

Took a first pass at the code, and a left a few comment. Ping me if you need me to clarify anything in here.

@ScottAntonacAP ScottAntonacAP added the enhancement New feature or request label Feb 26, 2023
…vements

EIT-2304: cash request function improvements
@pedronveloso pedronveloso self-requested a review March 2, 2023 02:45
Copy link
Collaborator

@pedronveloso pedronveloso left a comment

Choose a reason for hiding this comment

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

Love to see better Unit Test coverage. 👏🏻
LGTM!

Comment on lines +25 to +29
every { connection.requestMethod = "POST" } returns Unit
every { connection.doInput = true } returns Unit
every { connection.doOutput = true } returns Unit
every { connection.setRequestProperty(any(), any()) } returns Unit
every { connection.outputStream } returns ByteArrayOutputStream()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: I wonder if we used relaxed = true when defining the mock above, if we would still need to define all of this "stubs". Might be worth trying if that works, if so could remove this entire block on the setup.

eg.: private val connection = mockk<HttpsURLConnection>(relaxed = true)

Copy link

@rmarinleal rmarinleal left a comment

Choose a reason for hiding this comment

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

Nice work here!
LGTM

@ScottAntonacAP ScottAntonacAP merged commit 6b65a48 into master Mar 10, 2023
2 checks passed
@ScottAntonacAP ScottAntonacAP deleted the feature/EIT-2304-cash-app branch March 10, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants