paypal is working and creating payment, also charging account, refactoring code