You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何从Razorpay商店页面生成的订单中获取订单项信息?

问题解答
  • Razorpay当前没有提供公开API,支持通过订单line_items中的liId获取Payment Pages关联的产品详情。
  • 从你提供的订单对象来看,line_items仅以序列化字符串形式存于notes字段中,仅包含qty、amt和liId三个基础字段,无额外产品元数据。
  • 你提到的「暂无法实现该需求,已更换其他电商支付集成方案」是当前可行的替代方案之一。

订单对象示例(格式化后):

{
  "id": "order_id",
  "entity": "order",
  "amount": 500,
  "amount_paid": 500,
  "amount_due": 0,
  "currency": "INR",
  "receipt": null,
  "offer_id": null,
  "status": "paid",
  "attempts": 1,
  "notes": { "line_items": "[{\"qty\":1,\"amt\":500,\"liId\":\"li_id\"}]" },
  "created_at": 1728282584,
  "cod_fee": 0,
  "shipping_fee": 0,
  "line_items_total": 500
}

内容的提问来源于stack exchange,提问作者Vignesh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 14:07:02