Skip to content

Commit

Permalink
fix: update zero amount validation
Browse files Browse the repository at this point in the history
  • Loading branch information
andysg012 committed Oct 25, 2022
1 parent ab28408 commit 9146d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xendit/XDTCards.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public class XDTCards: CanTokenize, CanAuthenticate {

}

guard tokenizationRequest.amount.doubleValue > 0 else {
guard tokenizationRequest.amount.doubleValue >= 0 else {
return XenditError(errorCode: "VALIDATION_ERROR", message: "Amount must be a number greater than 0")
}

Expand Down

0 comments on commit 9146d72

Please sign in to comment.