简体   繁体   English

将卡保存到保管库时无法分配payer_id

[英]Cannot assign a payer_id when saving a card to the vault

According to the rest api documentation it is recommended to assign a payer_id when saving a card to the vault. 根据rest api文档,建议在将卡保存到Vault时分配payer_id。

My problem is that there is no payer_id property to populate for the creditCard object in the first place. 我的问题是,首先没有为creditCard对象填充的payer_id属性。

creditCard.number       = "4417119669820331";
creditCard.expire_month = "11";
creditCard.expire_year  = "2018";
creditCard.first_name   = "Joe";
creditCard.last_name    = "Shopper";
creditCard.type         = "visa";
**creditCard.payer_id = "123456789";**

As far as I am aware I am using the latest APIs updated by Nuget in VS2012. 据我所知,我正在使用Nuget在VS2012中更新的最新API。

Here's the response from the PayPal Vault API team: 这是PayPal Vault API小组的回复:

The payer_id field was never removed. payer_id字段从未删除。 We've intended to deprecate/discourage its use because we determined that this field was misleading in the way it was named - it was being mistaken for a PayPal's internal identifier, where in reality, to PayPal, it was just an arbitrary string, intending to identify an externally managed customer id. 我们打算弃用/反对使用它,因为我们确定该字段在命名方式上具有误导性-它被误认为是PayPal的内部标识符,实际上,对于PayPal而言,它只是一个任意字符串,识别外部管理的客户ID。 The Vault team has since added a field named external_customer_id that better captures the intent. 此后,保险柜团队添加了一个名为external_customer_id的字段,可以更好地捕获意图。

The external_customer_id property (found here in the current version of the SDK) is what should be used instead. external_customer_id属性(发现这里的SDK的当前版本)正是应改为使用。 However, since the payer_id property will continue to be supported in the v1 version of the Vault REST services, the .NET SDK will continue to provide support for this (the upcoming v1.1 .NET SDK release will include it again). 但是,由于Vault REST服务的v1版本将继续支持payer_id属性,因此.NET SDK将继续为此提供支持(即将发布的v1.1 .NET SDK版本将再次包含它)。

The PayPal documentation team is working on getting the public documentation for the credit card object updated to include this information. PayPal文档团队正在努力更新信用卡对象的公共文档以包含此信息。


For future reference by other developers who may find this post, I'd like to add that if you do find a property missing from the PayPal .NET SDK, a better place to report this is to open an issue on the PayPal .NET SDK GitHub repository where the code for the SDK resides. 供其他开发人员参考,我想补充一下,如果您确实找到了PayPal .NET SDK中缺少的属性,那么报告此问题的更好位置是在PayPal .NET SDK打开一个问题 SDK代码所在的GitHub存储库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM