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

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