Skip to content

Commit

Permalink
fix bug in payping gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadv184 committed Dec 26, 2021
1 parent aae90e5 commit bc4392a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/payping/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ func (d *Driver) Verify(vReq interface{}) (*receipt.Receipt, error) {
}
}

return nil, e.ErrInvalidPayment{
Message: res["1"].(string),
for _, k := range res {
return nil, e.ErrInvalidPayment{
Message: k.(string),
}
}
return nil, e.ErrInvalidPayment{}
}
rec := receipt.NewReceipt(verifyReq.RefID, d.GetDriverName())
rec.Detail("cardNumber", res["cardNumber"].(string))
Expand Down

0 comments on commit bc4392a

Please sign in to comment.