diff --git a/Xendit/XDTCards.swift b/Xendit/XDTCards.swift index b495e3e..9f40352 100644 --- a/Xendit/XDTCards.swift +++ b/Xendit/XDTCards.swift @@ -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") }