I want to add ApplePay(add visa card to Apple wallet) functionality in my program

several steps I have done:

1、send Apple Pay Entitlement & Whitelisting Request email and approved by Apple

2、setting Addiction Capability,config wallet ,import Profile Provisioning

3、setting Entitlement.info,enable com.apple.developer.payment-pass-provisioning=YES

4、successfully show “add Card to ApplePay” Page

5、error occurs in

  • (void)addPaymentPassViewController:(PKAddPaymentPassViewController *)controller

generateRequestWithCertificateChain:(NSArray<NSData *> *)certificates nonce:(NSData *)nonce nonceSignature:(NSData *)nonceSignature completionHandler:(void (^)(PKAddPaymentPassRequest *request))handler{ ..... handler(request); }

download from testflight to test

I got a error ’Error Domain=PKPassKitErrorDomain Code=1 "(null)"’, it seems always happened whatever i do.

It is there any steps I miss?What I can do to solve the issue.

I want to add ApplePay(add visa card to Apple wallet) functionality in my program
 
 
Q