If I want to use Square on my web application to print the receipt, is there any API can support this?
There are no APIs around printing currently. If you push it to the Square POS application you can have it print from there. Otherwise, you could still pull the receipt_url from the Payment object, but you would need to implement the printing functionality yourself.