#6: initial create payment method
#6: fixed some undefined vars and bad function args
#6: doc comment change