简体   繁体   中英

Update record after payment is made successfully through google checkout

I am using google checkout HTML API with a ruby on rails application. 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.
My question is how can i check that payment is successfully made?

Google sends a serial number notification for every order notification. This notification contains the serial number as a name value pair in the POST message body.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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