如何在paypal v2 node.js中创建和捕获订单之前,在创建和捕获订单之前如何包含用户数据
我正在尝试构建具有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要作为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.