copy of fast_pay php library.