/// <summary> /// Initializes a new instance of the <see cref="Verify3dRequest"/> with the required parameters. /// </summary> /// <param name="merchantInfo">Merchant's data (E.g. secret key, the merchant id, the merchant site id, etc.)</param> /// <param name="sessionToken">The session identifier returned by /getSessionToken.</param> /// <param name="currency">The three character ISO currency code of the transaction.</param> /// <param name="amount">The transaction amount. (E.g. 1, 101.10 - decimal representation of the amount as <see cref="string"/>.</param> /// <param name="paymentOption">Details about the payment method.</param> /// <param name="relatedTransactionId">The ID of the original transaction.</param> public Verify3dRequest( MerchantInfo merchantInfo, string sessionToken, string currency, string amount, Verify3dPaymentOption paymentOption, string relatedTransactionId) : base(merchantInfo, ChecksumOrderMapping.ApiGenericChecksumMapping, sessionToken) { this.Currency = currency; this.Amount = amount; this.PaymentOption = paymentOption; this.RelatedTransactionId = relatedTransactionId; this.RequestUri = this.CreateRequestUri(ApiConstants.Verify3dUrl); }
public async Task <Verify3dResponse> Verify3d( string currency, string amount, Verify3dPaymentOption paymentOption, string relatedTransactionId, string clientUniqueId = null, string clientRequestId = null, UserAddress billingAddress = null, string customData = null, string customSiteName = null, MerchantDetails merchantDetails = null, SubMerchant subMerchant = null, string userId = null, string userTokenId = null, DeviceDetails deviceDetails = null, string rebillingType = null, string authenticationTypeOnly = null, Addendums addendums = null) { var request = new Verify3dRequest(merchantInfo, sessionToken, currency, amount, paymentOption, relatedTransactionId) { UserId = userId, UserTokenId = userTokenId, ClientRequestId = clientRequestId, ClientUniqueId = clientUniqueId, SubMerchant = subMerchant, BillingAddress = billingAddress, MerchantDetails = merchantDetails, CustomSiteName = customSiteName, CustomData = customData, DeviceDetails = deviceDetails, RebillingType = rebillingType, AuthenticationTypeOnly = authenticationTypeOnly, Addendums = addendums }; return(await safechargeRequestExecutor.Verify3d(request)); }