简体   繁体   English

如何获取 paypal node.js 中的事务 ID 反应?

[英]How to get the transaction ID in paypal node.js react?

I am currently working on react js project where I need two main functionalities of Paypal one is to make payment and other is to make a refund on that payment ( sometimes partial refund on a subset of that payment).我目前正在研究 react js 项目,我需要 Paypal 的两个主要功能一个是付款,另一个是对该付款进行退款(有时对该付款的一部分进行部分退款)。

I am following this sdk of the node.js implementation, https://github.com/paypal/Checkout-NodeJS-SDK我正在关注 node.js 实现的 sdk, https://github.com/paypal/Checkout-NodeJS-SDK

but I want to extract the transaction ID and token and such details which I am not able to find in this SDK.但我想提取交易 ID 和令牌以及在此 SDK 中找不到的详细信息。

I am just getting the order ID capture ID refund ID but not the transaction ID, so how do I get that?我只得到了订单 ID 捕获 ID 退款 ID 而不是交易 ID,那么我该如何获取呢?

also, I am suggested to use smart payment buttons but if I am using the smart payment buttons, I am able to perform the checkout operation,but getting different set of details like另外,建议我使用智能支付按钮,但如果我使用智能支付按钮,我可以执行结帐操作,但会获得不同的详细信息,例如

payment ID, payment token and I don't know how to perform the refund for that payment?付款 ID、付款令牌,我不知道如何为该笔付款执行退款?

A capture ID is a transaction ID.捕获 ID事务 ID。

As discussed in comments elsewhere, the confusion was that the buyer/sender has its own transaction ID.正如在其他地方的评论中所讨论的,令人困惑的是买方/发件人有自己的交易 ID。

(For every PayPal transaction, the sender and the receiver each have their own transaction ID) (对于每笔 PayPal 交易,发送者和接收者都有自己的交易 ID)

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

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