简体   繁体   English

在PayPal Vault付款中获得(401)未经授权,在沙箱中可以正常工作

[英]Getting (401) Unauthorised in PayPal Vault payment, works fine in sandbox

I'm able to store a card in the PayPal Vault in production, read a card, delete a card, and enumerate all the cards in the vault using C# and the PayPal SDK's. 我可以使用生产中的PayPal保管库存储卡,读取卡,删除卡并使用C#和PayPal SDK枚举保管库中的所有卡。 However, when I try to use a card stored in the vault to make a purchase, I get a (401) Unauthorised error. 但是,当我尝试使用存储在金库中的卡进行购买时,出现(401)未经授权的错误。 This purchase works fine in the PayPal Sandbox but fails in production when it hits the line: 这项购买在PayPal沙箱中可以正常运行,但在生产线上时却无法生产:

var createdPayment = payment.Create(ppc.apiContext);

Walking through the debugger, I have the config setup for live, apiContext, transaction, and credit card token... they all look correct. 遍历调试器,我为实时,apiContext,事务和信用卡令牌设置了配置……它们看上去都是正确的。

I'm not sure if this is a technical issue or whether the company just needs to have certain "permissions" enabled like Direct Credit Card Payments or something like that. 我不确定这是否是技术问题,或者公司是否只需要启用某些“权限”,例如直接信用卡付款或类似的功能。

I have a ticket opened in PayPal MTS but so far, no help. 我有一张在PayPal MTS中打开的票,但是到目前为止,没有帮助。 Any direction would be greatly appreciated. 任何方向将不胜感激。

Ok, it's not a technical issue at all, it's permissions at the company level. 好的,这根本不是技术问题,而是公司级别的权限。 We had log on, go to the Dashboard, My Account, and enable "Direct Credit Cards". 我们已经登录,转到“信息中心”的“我的帐户”,然后启用“直接信用卡”。 You then have to fill out an application and submit it. 然后,您必须填写申请并提交。 We were contacted by e-mail with a few questions, provided three months of bank credit card statements, and were approved. 通过电子邮件与我们联系,提出了一些问题,并提供了三个月的银行信用卡对帐单并获得批准。 Once that happened, we were able to make purchases with credit cards stored in the PayPal Vault. 一旦发生这种情况,我们便可以使用存储在PayPal保险柜中的信用卡进行购买。 Would be nice if they told you that up front somewhere... 如果他们在某个地方告诉你那会很好...

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

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