Skip to content

Commit

Permalink
expect 200 ok from p4 on request (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
tigh-latte authored Oct 14, 2021
1 parent d67a359 commit 4223970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/http/p4.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (p *p4) PaymentRequest(ctx context.Context, args payd.PayRequest) (*payd.Pa
_ = res.Body.Close()
}()

if res.StatusCode != http.StatusCreated {
if res.StatusCode != http.StatusOK {
return nil, fmt.Errorf("unexpected status code %d", res.StatusCode)
}

Expand Down

0 comments on commit 4223970

Please sign in to comment.