贝宝PAYEE_ACCOUNT_INVALID

问题描述 投票:0回答:1

我正在尝试使用 Nodejs paypal-rest-sdk 使用客户的信用卡信息来收取客户的付款

const paymentData = {
intent: 'sale',
payer: {
payment_method: 'credit_card',
funding_instruments: [
{
credit_card: {
number: '****',
type: 'visa',
expire_month: **,
expire_year: ***,
cvv2: '***',
first_name: 'John',
last_name: 'Doe',
},
},
],
},
transactions: [
{
amount: {
total: '10.00',
currency: 'USD',
},
payee: {
merchant_id: 'mymerchantid',
},
description: 'Some description',
},
],
};
paypal.payment.create(paymentData, ....)

当我运行此代码时,我收到错误 PAYEE_ACCOUNT_INVALID。

我需要在我的帐户中启用某些功能才能允许这笔付款通过并借记我的帐户吗?

我不想使用托管 UI,因为付款是通过顾问通过电话收取的。

我目前正在使用沙箱。

node.js paypal payment
1个回答
0
投票

使用 v1/ payment API 进行信用卡处理早已被弃用。您的帐户未(也不会)设置为接收此类付款,因此该帐户无效,因此会出现错误消息。

此外,在撰写本文时,PayPal API 的所有服务器端 SDK 均已弃用。仅支持直接 HTTPS(无 SDK)集成,首先获取 access_token,然后以 JSON 格式发送 API 请求。

请参阅标准高级集成指南。

© www.soinside.com 2019 - 2024. All rights reserved.