Exemplo n.º 1
0
		public void CycleSession()
		{
			_sessionPaymentModel = new CardPaymentModel();
			_sessionTokenPaymentModel = new TokenPaymentModel();
			_sessionPKPaymentModel = new PKPaymentModel();
			_sessionAndroidPaymentModel = new AndroidPaymentModel();
		}
Exemplo n.º 2
0
 public Task<IResult<ITransactionResult>> Create(PKPaymentModel pkPayment)
 {
     var validationError = Validate<PKPaymentModel, ITransactionResult>(PKPaymentValidator, pkPayment);
     return validationError ?? PostInternal<PKPaymentModel, ITransactionResult>(_createAddress, pkPayment);
 }
Exemplo n.º 3
0
        public Task<IResult<JudoApiErrorModel>> Validate(PKPaymentModel pkPreAuth)
        {
            var validationError = Validate<PKPaymentModel, JudoApiErrorModel>(PKPaymentValidator, pkPreAuth);

            return validationError ?? PostInternal<PKPaymentModel, JudoApiErrorModel>(_validatePreAuthAddress, pkPreAuth);
        }