Re: In app bottom

Solved! Go to solution
Karla_DC
Regular Visitor

In app bottom

We have the scenario where a customer has an iphone and an iwatch. The provisioning for the iphone is all ok. However, when I go back to my banking app, the bottom does not offer me the option to provision the watch. It just says,Card added to Apple Pay. What are we missing? 

6 REPLIES 6
jenn_kh
Community Moderator

Re: In app bottom

Hi and welcome to the community, @Karla_DC! Thank you for your question. One of our agents will get back to you with more information as soon as possible. -Jenn

API_Products
Visa Developer Support Specialist

Re: In app bottom

Hi @Karla_DC,

 

Which API product does your question relate to? What is your use case and what are you trying to do? Please visit our API Browser for a list of our API products here: https://developer.visa.com/apibrowser  




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Karla_DC
Regular Visitor

Re: In app buttom

thanks. We are testing the in app solution, where we have succesfully provisioned an iphone, but unable to show the option to provision the iwatch. 

 

This is our current code
@objc
func existPkPass(_ options: NSDictionary, resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
let cardPAN:String = RCTConvert.nsString(options["PrimaryAccountSuffix"]) as String
let passLibrary = PKPassLibrary()
var devicePasses:[PKPass] = []
var currentPass: PKPass?;
var exists:Bool = false;
// We get associated passes / cards
if #available(iOS 13.4, *) {
devicePasses = passLibrary.passes(of: .secureElement)
} else {
devicePasses = passLibrary.passes(of: .payment)
}

// Iterate over passes to find the one we need
for devicePass in devicePasses {
let devicePassPAN:String = (self.deviceCardSuffix(for: devicePass) ?? "") as String
if devicePassPAN == cardPAN {
currentPass = devicePass
break
}
}

guard let hasPass = currentPass else {
return resolve([
"displayButton" : true
])
}

let devicePassPAN:String = (self.deviceCardSuffix(for: hasPass) ?? "") as String

if #available(iOS 13.4, *) {
exists = passLibrary.canAddSecureElementPass(primaryAccountIdentifier: devicePassPAN)
} else {
exists = passLibrary.canAddPaymentPass(withPrimaryAccountIdentifier: devicePassPAN)
}

resolve([
"displayButton" : !exists
])
}

I submit the case to feedback assistant under the number FB9857547

STEPS TO REPRODUCE
- Provision a card with in-app provisioning from within our wallet
- we get the apple watch is available to provision the card
- Go back to the app and the button is no longer available


API_Products
Visa Developer Support Specialist

Re: In app buttom

Hi @Karla_DC,

 

Before I log an incident to our engineering team to investigate the issue, please provide the following information:

 

1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body

 

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Products
Visa Developer Support Specialist

Re: In app buttom

Hi @Karla_DC,

 

I've logged incident INC12917761 for the engineering team to investigate. In the meantime, please provide the x-correlation-id for further investigation of the issue. Instructions to get the x-correlation-id were provided in my previous forum reply to you above.

 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Karla_DC
Regular Visitor

Re: In app buttom

I closed the incident, because we are not going to be able to see a solution here. There is nos correlation ID, since the transaction was no generated. We are having problems with the applepay passkit . It is not a Visa api per ser, but since you are obo I thought you might be able to know. 

 

thanks!