public void OnPaymentDataRequested(PaymentRequest p0, string p1, IPaymentDataCallback p2) { PaymentDataRequested?.Invoke(p0, p1, p2); }
public void OnPaymentDataRequested(PaymentRequest paymentRequest, string token, IPaymentDataCallback callback) { Dictionary <string, string> headers = new Dictionary <string, string>(); headers.Add("Content-Type", "application/json; charset=UTF-8"); headers.Add(merchantApiHeaderKeyForApiSecretKey, merchantApiSecretKey); AsyncHttpClient.Post(merchantServerUrl + SETUP, headers, GetSetupDataString(token), new HttpResponseCallback { Success = (response) => { callback.CompletionWithPaymentData(response); }, Failure = (p0) => { paymentRequest.Cancel(); } }); }