asp.net mvc 3 - Need to know how to pass a model for paypal transaction -
i have simple order form created in mvc , when hit submit button, have user redirected paypal payment , redirected original page. i'm trying find out how either pass model information or save somehow because after payment complete, program sends them email copy of receipt , successful purchase. how go doing this? please let me know if there else need see. i'm still brand new mvc , i'm trying figure out.
model
public class writingappmodel { [required(errormessage = "name required")] public string name { get; set; } [emailaddress(errormessage = "a valid email address required.")] [required(errormessage = "email address required.")] public string email { get; set; } [phone(errormessage = "a valid phone number required.")] [required(errormessage = "phone number required.")] public string phonenumber { get; set; } [required(errormessage = "subject required.")] public string subject { get; set; } [required(errormessage = "topic required.")] public string topic { get; set; } [required(errormessage = "document type required.")] public string documenttype { get; set; } [required(errormessage = "urgency required.")] public string urgency { get; set; } [required(errormessage = "number of pages required.")] public int16 numberofpages { get; set; } [required(errormessage = "requirements required.")] [datatype(datatype.multilinetext)] [stringlength(200)] public string requirements { get; set; } [required(errormessage = "writing style required.")] public string style { get; set; } [required(errormessage = "spacing required.")] public string spacing { get; set; } [required(errormessage = "academic level required.")] public string academiclevel { get; set; } [required(errormessage = "number of sources required.")] public int16 numberofsources { get; set; } [required(errormessage = "price required.")] [range(0.01, 10000.00, errormessage = "your quote not complete because haven't completed of steps.")] [datatype(datatype.currency)] [displayformat(dataformatstring = "{0:c}")] public decimal price { get; set; } public string unformattedprice { { return this.price.tostring(); } } [required(errormessage = "currency required.")] public string currency { get; set; } }
Comments
Post a Comment