Refactor Spree::Payment#set_unique_identifier.

- Use Array#sample.
- Remove Array#flatten.
- Use iteration instead of recursive call to ensure unique identifier.
- Separate identifier generator from setter callback.
- Remove usage of temp variable "identifier" by using Array.new.