如何在paypal v2 node.js中创建和捕获订单之前,在创建和捕获订单之前如何包含用户数据

发布于 2025-02-10 21:22:23 字数 170 浏览 1 评论 0原文

我正在尝试构建具有PayPal集成的flutter电子商务应用程序后端Node.js,并且我正在使用V2版本,因为V1已弃用,我不知道在哪里插入诸如其DB ID的唯一标识符当我创建订单时,我将确定捕获订单时哪个用户支付付款 我正在使用 @PayPal/Checkout-Server-SDK软件包来处理后端。 对不起,我的英语

I'm trying to build flutter e-commerce application backend node.js which has PayPal integration and I'm using the V2 version since v1 is deprecated and I don't know where to insert a unique identifier like its DB id for the user when I create the order then I will identify which user pay the payment when I capture the order
I'm using the @paypal/checkout-server-SDK package to handle the backend.
sorry for my English

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无可置疑 2025-02-17 21:22:23

如果您需要作为PayPal订单记录的一部分存储的信息,则可以在创建订单时指定custom_id

如果您只需要跟踪创建和捕获步骤之间的ID,则有许多方法可以将信息临时存储在节点中,包括在Web会话中,例如使用Express-Session。有很多教程。

If you need the information to be stored as part of the PayPal order record, you can specify a custom_id when creating the order.

If you just need to keep track of the ID between creation and capture steps, there are many ways to store information temporarily in node, including in a web session, for instance using express-session. There are many tutorials.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文