Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 ruby on rails 应用程序的 google checkout HTML API。付款成功后,我想在本地数据库中添加/更新记录。我收到通知序列号以响应 API 回调 URL。 我的问题是如何检查付款是否成功?
Google 会为每个订单通知发送一个序列号通知。此通知包含序列号作为 POST 消息正文中的名称值对。
成功收到序列号通知后,您需要使用 Notification History API 来请求相关的通知,例如 New Order Notification。
https://developers.google.com/checkout/developer/Google_Checkout_XML_API_Notification_API#requesting_notifications
以下是您可以请求的其他类型的通知:
https://developers.google.com/checkout/developer/Google_Checkout_XML_API_Notification_API#Types_of_Notifications