Added custom value for reference transactions, fixed ipn bugs