added logic to stripe module