是否可以像苹果钱包一样在谷歌支付中存储二维码等信息?如果没有,还有其他选择吗,我已经研究了某些应用程序,但还没有任何相关资源
1 回答
0
对的,这是可能的。许多不同类型的通行证都支持Barcode
where type
is的属性QR_CODE
。
这是有关如何设置它的示例:
const loyaltyObject = {
id: getLoyaltyId(email),
classId: `${issuerId}.${loyaltyProgram}`,
accountId: email,
accountName: name,
state: 'active',
loyaltyPoints: {
balance: {
int: points,
},
label: 'Points',
},
barcode: {
type: 'qrCode',
value: email,
},
};
于 2021-04-01T21:34:15.500 回答