$error = "<br><ul style='color:#eb4847'>{$error}</ul>"; } if ($box->is_paid() && !$error) { // Successful Cryptocoin Payment received // Your code here - // ... // ... // Please use also IPN function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") for update db records, etc // Set Payment Status to Processed $successful = true; $box->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 // If you manual setup userID, you need to change orderID also $box->cryptobox_reset(); } } // -------------------------- ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <title>Pay-Per-Post Cryptocoin (payments in multiple cryptocurrencies) Payment Example</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv='cache-control' content='no-cache'> <meta http-equiv='Expires' content='-1'> <meta name='robots' content='all'> <script src='../cryptobox.min.js' type='text/javascript'></script> </head>