将银行卡添加到 Apple Wallet

Add a bank card to Apple Wallet

我有一个任务要将银行卡添加到苹果钱包,我知道我需要获得苹果的许可。告诉我,地图需要什么数据才能添加到苹果钱包? Number, cvc, name of holder ...?

我正在尝试创建一个 PKAddPaymentPassViewController 对象:

[[PKAddPaymentPassViewController alloc] initWithRequestConfiguration: passDetails delegate: self]

对象总是returns nill,在这种情况下

[PKAddPaymentPassViewController canAddPaymentPass]

Returns 是的。我知道在 Apple 允许将卡片添加到 Apple Wallet 之前,此对象将无效?

I know that me need to get permission from Apple for this

&

I understand that this object will nill until Apple allows to add cards to Apple Wallet?

是的,你是对的。

Adding payment passes requires a special entitlement issued by Apple. Your app must include this entitlement before this class can be instantiated. For more information on requesting this entitlement, see the Card Issuers section at https://developer.apple.com/apple-pay/.