Skip to content

Commit

Permalink
Fixes claim for existing wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Aug 10, 2020
1 parent 5fb25dc commit 6052ade
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ ledger::Result ParseRecoverWallet(
// POST /v3/wallet/uphold/{payment_id}/claim
//
// Success:
// OK (201)
// CREATED (201)
// OK (200)
//
// Response Format:
// {Empty body}
Expand Down Expand Up @@ -175,7 +176,8 @@ ledger::Result CheckClaimWallet(const ledger::UrlResponse& response) {
return ledger::Result::LEDGER_ERROR;
}

if (response.status_code != net::HTTP_CREATED) {
if (response.status_code != net::HTTP_CREATED &&
response.status_code != net::HTTP_OK) {
return ledger::Result::LEDGER_ERROR;
}

Expand Down

0 comments on commit 6052ade

Please sign in to comment.