long MTRecord::GetPaymentPlanAmount() { if (!IsPaymentPlan()) return 0; OTPaymentPlan thePlan; const OTString strPlan(GetContents().c_str()); if (thePlan.LoadContractFromString(strPlan) && thePlan.HasPaymentPlan()) return thePlan.GetPaymentPlanAmount(); return 0; }