selling digital products via api

I am looking for a shopping cart (PHP script) to sell digital products via API.
Like this site: https://dundle.com
buy ant item from this site and in a few mins code sent to my email.
and this site uses API from this site prepaidforge.com