Official PaymentAPI class for PHP