如何从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
相关产品推荐
相关产品推荐

