partial void lastPaymentInfo(UIBarButtonItem btnViewHistory) { iZettleSDK.Shared.RetrievePaymentInfoForReference(_lastReference, this, (iZettleSDKPaymentInfo arg0, NSError arg1) => { _lastPaymentInfo = arg0; _lastError = arg1; ShowConsole(); }); }
partial void refundLastPayment(UIBarButtonItem btnRefund) { var paymentReference = _lastReference; _lastReference = Guid.NewGuid().ToString(); iZettleSDK.Shared.RefundAmount(null, paymentReference, _lastReference, this, (arg0, arg1) => { _lastPaymentInfo = arg0; _lastError = arg1; ShowConsole(); }); }
partial void charge(UIButton btnCharge) { _lastReference = Guid.NewGuid().ToString(); var amount = amountWheel.Amount; iZettleSDK.Shared.ChargeAmount(amount, null, _lastReference, this, (iZettleSDKPaymentInfo paymentInfo, NSError error) => { _lastPaymentInfo = paymentInfo; _lastError = error; _timestamp = DateTime.Now; UpdateLastPaymentToolbar(); ShowConsole(); }); }
public static PaymentInfo ToPcl(this iZettleSDKPaymentInfo paymentInfo) { return(new PaymentInfo { AID = paymentInfo.AID, Amount = paymentInfo.Amount.DoubleValue, ApplicationName = paymentInfo.ApplicationName, AuthorizationCode = paymentInfo.AuthorizationCode, CardBrand = paymentInfo.CardBrand, //TODO Dictionary = paymentInfo.Dictionary.Select() EntryMode = paymentInfo.EntryMode, GratuityAmount = paymentInfo.GratuityAmount.DoubleValue, InstallmentAmount = paymentInfo.InstallmentAmount.DoubleValue, NumberOfInstallments = paymentInfo.NumberOfInstallments.Int32Value, ObfuscatedPan = paymentInfo.ObfuscatedPan, PanHash = paymentInfo.PanHash, ReferenceNumber = paymentInfo.ReferenceNumber, TSI = paymentInfo.TSI, TVR = paymentInfo.TVR }); }