Credits/tickets system - paypal

http://activemerchant.org is the lib that powers Shopify. It supports paypal.