Polling
Last updated ยท Page 8 of 11
Right after the redirect the status is often ON_HOLD or PENDING. Poll from your server after
2, 4, 8, 15 and 30 seconds, and stop as soon as it is neither. If it still is after the last try,
show "Your order is being processed, you will receive a confirmation email from Groupon" with the
purchase buttons you have, and read it again every 10 minutes for up to a day. An order still
ON_HOLD or PENDING after a day is not completed: the shopper's email from Groupon is the
answer.
Stop reading an order once it is CONFIRMED, REDEEMED, REFUNDED, REJECTED, EXPIRED or
CANCELLED. A paid order can still be refunded later: Groupon's refund window is 3 days on a
local offer (until its code is viewed) and 30 days on goods. You need not poll for that.
LivingSocial reads each paid order again for 30 days and the order list shows
the refund: read it once a day, or read one order again when the shopper opens it on your site.