public void Copy(PayPalExpressPaymentSettings settings, bool fromSettings)
 {
     if (fromSettings)
     {
         MiniMapper.Map(settings, this);
     }
     else
     {
         MiniMapper.Map(this, settings);
         settings.ApiAccountName     = ApiAccountName.TrimSafe();
         settings.ApiAccountPassword = ApiAccountPassword.TrimSafe();
         settings.Signature          = Signature.TrimSafe();
     }
 }
 public void Copy(PayPalDirectPaymentSettings settings, bool fromSettings)
 {
     if (fromSettings)
     {
         MiniMapper.Map(settings, this);
     }
     else
     {
         MiniMapper.Map(this, settings);
         settings.ApiAccountName      = ApiAccountName.TrimSafe();
         settings.ApiAccountPassword  = ApiAccountPassword.TrimSafe();
         settings.ClientId            = ClientId.TrimSafe();
         settings.ExperienceProfileId = ExperienceProfileId.TrimSafe();
         settings.Secret    = Secret.TrimSafe();
         settings.Signature = Signature.TrimSafe();
         settings.WebhookId = WebhookId.TrimSafe();
     }
 }
Esempio n. 3
0
        public void Copy(PayPalPlusPaymentSettings settings, bool fromSettings)
        {
            if (fromSettings)
            {
                MiniMapper.Map(settings, this);
            }
            else
            {
                TransactMode = TransactMode.AuthorizeAndCapture;

                MiniMapper.Map(this, settings);
                settings.ApiAccountName      = ApiAccountName.TrimSafe();
                settings.ApiAccountPassword  = ApiAccountPassword.TrimSafe();
                settings.ClientId            = ClientId.TrimSafe();
                settings.ExperienceProfileId = ExperienceProfileId.TrimSafe();
                settings.Secret    = Secret.TrimSafe();
                settings.Signature = Signature.TrimSafe();
                settings.WebhookId = WebhookId.TrimSafe();
            }
        }