$public_key, // your public key from gourl.io "private_key" => $private_key, // your private key from gourl.io "webdev_key" => "", // optional, gourl affiliate key "orderID" => $orderID, // order id or product name "userID" => $userID, // unique identifier for every user "userFormat" => $userFormat, // save userID in COOKIE, IPADDRESS or SESSION "amount" => 0, // product price in coins OR in USD below "amountUSD" => $amountUSD, // we use product price in USD "period" => $period, // payment valid period "language" => $def_language // text on EN - english, FR - french, etc ); // Initialise Payment Class $box = new Cryptobox ($options); // coin name $coinName = $box->coin_name(); // Successful Cryptocoin Payment received if ($box->is_paid()) { if (!$box->is_confirmed()) { $message = "Thank you for order (order #".$orderID.", payment #".$box->payment_id()."). Awaiting transaction/payment confirmation"; } else { // payment confirmed (6+ confirmations) // one time action if (!$box->is_processed()) { // One time action after payment has been made/confirmed // !!For update db records, please use function cryptobox_new_payment()!! $message = "Thank you for order (order #".$orderID.", payment #".$box->payment_id()."). Payment Confirmed.
(User will see this message one time after payment has been made)"; // Set Payment Status to Processed $box->set_status_processed(); } else $message = "Thank you for order (order #".$orderID.", payment #".$box->payment_id()."). Payment Confirmed.
(User will see this message during ".$period." period after payment has been made)"; // General message } } else $message = "This invoice has not been paid yet"; // Optional - Language selection list for payment box (html code) $languages_list = display_language_box($def_language); // ... // Also you need to use IPN function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") // for send confirmation email, update database, update user membership, etc. // You need to modify file - cryptobox.newpayment.php, read more - https://gourl.io/api-php.html#ipn // ... ?> <?php echo $coinName; ?> Pay-Per-Product Cryptocoin Payment Example
1. GoUrl Pay-Per-Product Example ( payments). Use it on your website.
Multiple CryptoPHP SourceASP.NET SourceNEW - Payment Box 2024 (Mobile Friendly)WordpressOther Examples

Example - Customer Invoice


status Invoice

is_paid()) echo "

Pay Invoice Now -

"; else echo "

"; ?>
Language:  
display_cryptobox(true, 580, 230); ?>


Message :







">Valid HTML 4.01 Transitional