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