Fix bug with payment_code