An internal function for getting a Cloudshelf Authentication Token.
domain
Returns String .
createPaymentAttempt
device