简体   繁体   English

通过Google Checkout付款成功后更新记录

[英]Update record after payment is made successfully through google checkout

I am using google checkout HTML API with a ruby on rails application. 我将Google Checkout HTML API与Rails应用程序中的ruby一起使用。 I want to add/update records in my local database after a successful payment. 付款成功后,我想在本地数据库中添加/更新记录。 I am getting Notification serial number in response on API callback URL. 我在API回调URL上得到通知序列号。
My question is how can i check that payment is successfully made? 我的问题是如何检查付款是否成功?

Google sends a serial number notification for every order notification. Google会为每个订单通知发送序列号通知。 This notification contains the serial number as a name value pair in the POST message body. 该通知在POST消息正文中包含序列号作为名称/值对。

Once you've successfully received the serial number notification, you need to use the Notification History API to request the associated notification, such as the New Order Notification. 成功收到序列号通知后,您需要使用Notification History API来请求关联的通知,例如“新订单通知”。

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#requesting_notifications

Here are other types of notifications you can request: 您可以请求以下其他类型的通知:

https://developers.google.com/checkout/developer/Google_Checkout_XML_API_Notification_API#Types_of_Notifications https://developers.google.com/checkout/developer/Google_Checkout_XML_API_Notification_API#Types_of_Notifications

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM