/// <summary> /// Asynchronously Put a payment Info object from XML with possible association to a merchant /// </summary> /// <param name="bc">Bank card object</param> /// <param name="creatorReference">On optional value to be used by the sender for future reference</param> /// <param name="saveCVV">Whether to save the Security code with the card</param> /// <param name="merchantId">Optional value allowing access to the given merchant Id (pciBooking user Id of the hotel)</param> /// <param name="storeMode">Where to store the card data</param> /// <param name="userData">User data (piggyback)</param> /// <param name="ct">Cancelation token</param> /// <param name="callback">callback method to invoke upon completion. Will be invoked also after cancelation</param> public void PutCardDetailsAsync(Entities.BankCardDetails bc, string creatorReference, bool saveCVV, string merchantId, StoreMode storeMode, Object userData, CancellationToken ct, Action<Entities.Result<Uri>> callback) { PutCardDetailsAsync(bc.ToXML(true), creatorReference, saveCVV, merchantId, storeMode, userData, ct, callback); }
/// <summary> /// Asynchronously Put a payment Info object from XML with possible association to a merchant /// </summary> /// <param name="bc">Bank card object</param> /// <param name="creatorReference">On optional value to be used by the sender for future reference</param> /// <param name="merchantId">Optional value allowing access to the given merchant Id (pciBooking user Id of the hotel)</param> /// <param name="userData">User data (piggyback)</param> /// <param name="ct">Cancelation token</param> /// <param name="callback">callback method to invoke upon completion. Will be invoked also after cancelation</param> public void PutPaymentInfoAsync(Entities.PaymentInfo bc, string creatorReference, string merchantId, Object userData, CancellationToken ct, Action<Entities.Result<Uri>> callback) { PutPaymentInfoAsync(bc.ToXML(), creatorReference, merchantId, userData, ct, callback); }