Beispiel #1
0
        private Authentication GetAuth()
        {
            Authentication auth = new Authentication();

            auth.PublicApiKey  = GetPublicKey();
            auth.PrivateApiKey = GetPrivateKey();
            Log("GetAuth public key:  " + auth.PublicApiKey);
            Log("GetAuth private key: " + SimplifyPaymentHelper.FirstAndLast4(auth.PrivateApiKey));

            return(auth);
        }
 public override string ToString()
 {
     return(new StringBuilder()
            .Append("SimplifyPaymentSettings {")
            .Append("LiveMode=").Append(LiveMode)
            .Append(", SandboxPublicKey=").Append(SandboxPublicKey)
            .Append(", SandboxPrivateKey=").Append(SimplifyPaymentHelper.FirstAndLast4(SandboxPrivateKey))
            .Append(", LivePublicKey=").Append(LivePublicKey)
            .Append(", LivePrivateKey=").Append(SimplifyPaymentHelper.FirstAndLast4(LivePrivateKey))
            .Append(", DebugEnabled=").Append(DebugEnabled)
            .Append("}").ToString());
 }