I'm using the Visa Checkout Android SDK. I'm creating a ManualCheckoutSession. Visa Checkout is launching and I'm able to get a VisaPaymentSummary back. When I try to use it, I'm trying to get the callId, lastFourDigits, and cardBrand. When I debug and view the VisaPaymentSummary, I see all three. When I try to assign the values to variables, the callId is assigned, but the lastFourDigits and cardBrand assign as the string "null". Has anyone else seen this?
Hi @oldawg,
I'll take a look and someone will get back to you soon!
This is happening for me in newer version v6.3.0.
VisaPaymentSummary -> getLastFourDigits(),getCardBrand() returns null.
I see, 'partialPaymentInstrument' object though, but we have to do custom parsing.
Please advise.
Hi @Uday,
I will take a look and reach out to you soon.
Hi @Uday,
Thanks for contacting Visa Checkout Developer Support. Please submit an email inquiry to developer@visa.com directly. We will need more information to provide a response for this issue.
Hi @oldawg,
Thanks for contacting Visa Checkout Developer Support. Please submit an email inquiry to developer@visa.com directly. We will need more information to provide a response for this issue.
We were able to do a workaround. As in the earlier post, trying to get the lastFourDigits returned null. We were able to get the json for partial payment and parse it.
Hi @oldawg,
Wonderful to hear of your workaround. Can you please share with us how you were able to get the json for partial payment and parse it? I'm sure some others will be excited to see.
Sure.
The VisaPaymentSummary has a property "partialPaymentInstrument" that is a json string. If you parse it, you will see it has properties such as "lastFourDigits" and "paymentType". The "paymentType" property has a property "cardBrand". This workaround did it for me.