CodeIgniter Forums
Bitcoin Payments - Pay-Per-View, Pay-Per-Download, Pay-Per-Registration class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Bitcoin Payments - Pay-Per-View, Pay-Per-Download, Pay-Per-Registration class (/showthread.php?tid=279)



Bitcoin Payments - Pay-Per-View, Pay-Per-Download, Pay-Per-Registration class - cryptoapi - 11-17-2014

Hi,

We created Cryptocoin/Bitcoin Payment Gateway and use it on our own websites with Codeigniter. It work fine.
You can use it in your client projects also. We have affiliate program for web developers.

You can use bitcoin payments for user premium membership, allow unregistered visitor access to your premium webpage during 24 hours, allow visitor register on your website, post article on your website or giving download link on your products, etc). All in automatic mode - no manual actions are needed.

Open Source Bitcoin Payment class -  https://github.com/cryptoapi/Payment-Gateway
Website - https://gourl.io/

Simple Instruction to use Bitcoin Payments with Codeignator -
1) Download php bitcoin payment class https://coins.gourl.io/lib/cryptoapi_php.rar
2) Extract to directory lib\cryptobox\
3) Create mysql table https://github.com/cryptoapi/Payment-Gateway#mysql-table
4) Register on https://gourl.io/view/registration/New_User.html
5) Create new payment box https://gourl.io/editrecord/coin_boxes/ and get private/public keys
6) Use in your codeigniter controller code like -

Code:
 require_once( "lib/cryptobox/cryptobox.class.php" );
   $options = array("..options..");

  // Initialise Payment Class
 $box1 = new Cryptobox ($options);

  // Display Payment Box or successful payment result
 echo $box1->display_cryptobox();

 // One-time Process Received Payment
 if ($box1->is_paid() && !$box1->is_processed())
 {
// Your code here to handle a successful cryptocoin payment/captcha verification
// For example, update user membership
$box1->set_status_processed();
 }




[Image: bitcoinbox.png]

Full API - https://gourl.io/cryptocoin_payment_api.html


RE: Bitcoin Payments - Pay-Per-View, Pay-Per-Download, Pay-Per-Registration class - MrGate - 11-25-2014

Intresting, im glad you provided the code and not just the service +1 For Community


RE: Bitcoin Payments - Pay-Per-View, Pay-Per-Download, Pay-Per-Registration class - no1 - 12-08-2014

NICE MEN!!!!!!!!!!!!!!!!!!! exelent idea


RE: Bitcoin Payments - Pay-Per-View, Pay-Per-Download, Pay-Per-Registration class - Kennyendowed - 06-14-2018

pls sir this code

require_once( "lib/cryptobox/cryptobox.class.php" );
$options = array("..options..");

// Initialise Payment Class
$box1 = new Cryptobox ($options);

// Display Payment Box or successful payment result
echo $box1->display_cryptobox();

// One-time Process Received Payment
if ($box1->is_paid() && !$box1->is_processed())
{
// Your code here to handle a successful cryptocoin payment/captcha verification
// For example, update user membership
$box1->set_status_processed();
}


where do i put it in my controller or model ???