Payment processing library