How do I post a node to PayPal after node insert/update?
If you want to send this information and get and nid, the best place to do this is in:


hook_node_insert() to execute this action just after inserting the node and to have a nid.
hook_node_update() to execute this action just after updating the node.