Esempio n. 1
0
        private CardConnectAccountResponse MockCardConnectAccountResponse(CardConnectAccountRequest request)
        {
            CardConnectAccountResponse response;

            response = new CardConnectAccountResponse()
            {
                message = "Mock CardConnect account response",
                token   = ""
            };
            return(response);
        }
Esempio n. 2
0
        public static CardConnectCreditCard Map(OrderCloudIntegrationsCreditCardToken card, CardConnectAccountResponse response)
        {
            var cc = new CardConnectCreditCard()
            {
                CardType             = card.CardType,
                CardholderName       = card.CardholderName,
                ExpirationDate       = card.ExpirationDate.ToDateTime(),
                PartialAccountNumber = card.AccountNumber.ToCreditCardDisplay(),
                Token = response.token,
                xp    = new CreditCardXP
                {
                    CCBillingAddress = card.CCBillingAddress
                }
            };

            return(cc);
        }