" Postback URL: https:// The URL where realtime order completion updates for orders placed by you will be POSTed. This has to be an HTTPS url. " in their app.
No, it can't be localhost. It should be reachable HTTPs URL. You can use ngrok/others tunnel service, to server locally. Here is an example explanation for the same.