[Paypal rest] updated payment factory.