Hi,
Is it possible to use the google checkout API to refund, when the purchase is made via Google In-App API? We want an integrated solution for refund and notification, but also want the look-and-feel of the Google-InApp purchase flow. Since Google In-App is just a wrapper around Google checkout (the merchant console is the same), i would imagine it is possible. I was going down this path, and it seems that the Google In-App "seller secret" is the same as the Google checkout "merchant key", so that would appear to be further proof there is some sort of relationship between the two API.
Specifically, this is sample json i get back from a callback:
{"iss":"Google","request":{"price":"1.2","currencyCode":"USD","name":"1 to 10 Scoobies","description":"","sellerData":"dT0xMDA1JmM9MTAwNiZwPTEwMTUmc2lnPTg2NWFmOGNlZTc3ZjUwYTc2ZjY0MDRkMzA2NjhkOGE1","sku":""},"response":{"orderId":"07743248137569471886.C.1604292102195591"},"typ":"google/payments/inapp/item/v1/postback/buy","aud":"00281938835127256767","iat":1335518818,"exp":1335518838}
I've attached a screen capture of what I see in the merchant tool. In the order, I've boxed the 2 numbers. The Google order number, which is needed for Google checkout order processing api, does not seem to be returned in the notification from google in app purchase. The order id that is returned in the jwt json, seems to have no direct relationship with the Google order number, and is labeled "Live Gamer order number" in the screen shot.
So is what I am trying to do possible? Is there a way to go from this in-app order id to the google order number? Why are the 2 order numbers different? Are there other ways to do what I'm trying to do, which is to programmatically refund a purchase made via in-app purchase?
Thanks,
-Matt