Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorize net not giving card type for few Discover testing cards #304

Open
eliyasbaby opened this issue Dec 23, 2023 · 0 comments
Open

Comments

@eliyasbaby
Copy link

eliyasbaby commented Dec 23, 2023

var request = new getCustomerPaymentProfileRequest();
            request.customerProfileId = customerProfileId;
            request.customerPaymentProfileId = paymentProfileId;


            // instantiate the controller that will call the service
            var controller = new getCustomerPaymentProfileController(request);
            controller.Execute();
 var response = controller.GetApiResponse();

            if (response != null && response.messages.resultCode == messageTypeEnum.Ok)
            {                
                if (response.paymentProfile.payment.Item is creditCardMaskedType)
                {
                    exisitngCard = new CardDetails {
                        MaskedCardNumber = (response.paymentProfile.payment.Item as creditCardMaskedType).cardNumber,
                        ExpireMonth = (response.paymentProfile.payment.Item as creditCardMaskedType).expirationDate,
                        CreditCardType = (response.paymentProfile.payment.Item as creditCardMaskedType).cardType
                    };
                }
            }

On getCustomerPaymentProfileRequest, saved cards details for few discover card numbers not retuning card type

card details
Number: 6011111111111117
Expiration date : 01/34
cvv:123

Environment : sandbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant