Example #1
0
        public SendSecurePayCommand(IPurchaseTransactionsCommand purchaseTransactionsCommand, bool useAntiFraud, string url, string antiFraudUrl, bool ignoreCents)
        {
            _purchaseTransactionsCommand = purchaseTransactionsCommand;
            _url = useAntiFraud ? antiFraudUrl : url;

            // The SecurePay test environment allows you to specify cents to indicate to return certain error codes.
            // In UAT we do not want this behaviour so round the cents of any price that comes in.

            _ignoreCents = ignoreCents;
        }
Example #2
0
 public SendSecurePayCommand(IPurchaseTransactionsCommand purchaseTransactionsCommand, bool useAntiFraud, string url, string antiFraudUrl)
     : this(purchaseTransactionsCommand, useAntiFraud, url, antiFraudUrl, false)
 {
 }