# wx.addPaymentPassGetCertificateData(Object args, String cardholderName, String primaryAccountSuffix, String title, Array.<Object> showContents, String encryptScheme, String panid)

基础库 3.8.5 开始支持,低版本需做兼容处理

Promise 风格 调用:不支持

小程序插件:不支持

# 功能描述

拉起ApplePay添加卡流程,从PassKit获取证书、nonce与nonce签名

# 参数

# Object args

属性 类型 默认值 必填 说明
style number 0: Payment 1: Access
success function 接口调用成功的回调函数
fail function 接口调用失败的回调函数
complete function 接口调用结束的回调函数(调用成功、失败都会执行)

# args.success 回调函数

# 参数
# Object object
属性 类型 说明
result String 返回值
errorMsg String 错误信息
certificates Array.<String> 证书链,由PassKit生成,二进制转Base64数据
signNonce String nonce签名,二进制转Base64数据
errnonceorMsg String nonce,二进制转Base64数据

# String cardholderName

持卡人姓名

# String primaryAccountSuffix

持卡人卡号

# String title

开卡标题

# Array.<Object> showContents

属性 类型 默认值 必填 说明
key String 卡标题
value String 卡描述文案

# String encryptScheme

ECC加密"EV_ECC_v2" RSA加密 "EV_RSA_v2" 默认ECC加密

# String panid

唯一id