﻿function DeleteCreditCard(id, success, error) {
    $.ajax({
        type: "POST",
        data: "{id:'" + id + "'}",
        dataType: "json",
        url: "/srv/service.asmx/DeleteCreditCard",
        contentType: "application/json; charset=utf-8",
        success: function (msg) {
            success(msg);
        },
        error: function () {
            error();
        }
    });
}
function GetPaymentChoices(success, error) {
    $.ajax({
        type: "POST",
        data: "{}",
        dataType: "json",
        url: "/srv/service.asmx/GetPaymentChoices",
        contentType: "application/json; charset=utf-8",
        success: function (msg) {
            success(msg);
        },
        error: function () {
            error();
        }
    });
}
function SetPaymentChoices(c1, c2, c3, success, error) {
    $.ajax({
        type: "POST",
        data: "{c1:'" + c1 + "',c2:'" + c2 + "',c3:'" + c3 + "'}",
        dataType: "json",
        url: "/srv/service.asmx/SetPaymentChoices",
        contentType: "application/json; charset=utf-8",
        success: function (msg) {
            success(msg);
        },
        error: function () {
            error();
        }
    });
}
