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

Adds payment server handler #6479

Merged
merged 2 commits into from
Aug 26, 2020
Merged

Adds payment server handler #6479

merged 2 commits into from
Aug 26, 2020

Conversation

NejcZdovc
Copy link
Contributor

Resolves brave/brave-browser#11284

Submitter Checklist:

Test Plan:

check that following is working

  • tip with anon card
  • ac with anon card
  • ac with uphold
  • tip with vg
  • ac with vg

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@NejcZdovc NejcZdovc added this to the 1.15.x - Nightly milestone Aug 24, 2020
@NejcZdovc NejcZdovc self-assigned this Aug 24, 2020
@NejcZdovc NejcZdovc marked this pull request as ready for review August 24, 2020 12:22
@NejcZdovc NejcZdovc requested review from a team, emerick and zenparsing and removed request for a team August 24, 2020 12:22
Copy link
Collaborator

@tmancey tmancey left a comment

Choose a reason for hiding this comment

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

ads changes LGTM

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of nits up to you if they're worth addressing.

Copy link
Collaborator

@zenparsing zenparsing left a comment

Choose a reason for hiding this comment

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

👍

return ledger::Result::LEDGER_ERROR;
}

if (status_code != net::HTTP_CREATED) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just checking: can this endpoint ever return 200 for any reason? Do we want to treat 200 as an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, only 201 is success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Desktop] Payment server url handling
4 participants