public ActionResult Basic() { OptionsModel options = new OptionsModel() { public_key = "-your public key for Bitcoin box-", private_key = "-your private key for Bitcoin box-", webdev_key = "", orderID = "your_product1_or_signuppage1_etc", userID = "", userFormat = "COOKIE", amount = 0, amountUSD = 2, period = "24 HOUR", iframeID = "", language = "DE" }; using (Cryptobox cryptobox = new Cryptobox(options)) { DisplayCryptoboxModel model = cryptobox.GetDisplayCryptoboxModel(); // A. Process Received Payment if (cryptobox.is_paid()) { ViewBag.Message = "A. User will see this message during 24 hours after payment has been made!" + "<br/>" + cryptobox.amount_paid() + " " + cryptobox.coin_label() + " received<br/>"; // Your code here to handle a successful cryptocoin payment/captcha verification // For example, give user 24 hour access to your member pages // B. One-time Process Received Payment if (!cryptobox.is_processed()) { ViewBag.Message += "B. User will see this message one time after payment has been made!"; // Your code here - for example, publish order number for user // ... // Also you can use is_confirmed() - return true if payment confirmed // Average transaction confirmation time - 10-20min for 6 confirmations // Set Payment Status to Processed cryptobox.set_status_processed(); // Optional, cryptobox_reset() will delete cookies/sessions with userID and // new cryptobox with new payment amount will be show after page reload. // Cryptobox will recognize user as a new one with new generated userID // cryptobox_reset(); } } ViewBag.Message = "The payment has not been made yet"; return(View(model)); } }