Skip to content

Commit

Permalink
increase the clock time to 20 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Oct 19, 2022
1 parent 0d6b3eb commit 9ea7d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ func (client *Client) CollectSync(ctx context.Context, params *CollectParams, op
number := transaction.PaymentTransactionNumber
counter := 1
for {
time.Sleep(15 * time.Second)
time.Sleep(20 * time.Second)
transaction, response, err = client.Verify(ctx, number)
if err != nil || !transaction.IsPending() || ctx.Err() != nil || counter == 20 {
if err != nil || !transaction.IsPending() || ctx.Err() != nil || counter == 15 {
return transaction, response, err
}
counter++
Expand Down

0 comments on commit 9ea7d30

Please sign in to comment.