Skip to content

Commit

Permalink
Updated Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoapi committed Dec 14, 2015
1 parent 84fb41d commit 38c7fd8
Show file tree
Hide file tree
Showing 18 changed files with 338 additions and 25 deletions.
20 changes: 14 additions & 6 deletions Examples/example_basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,29 @@
* "datetime": "2015-01-02 16:16:28"
* );
*/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
/**** Move this function to the bottom of the file cryptobox.class.php or create a separate file ****/

// Your code here to handle a successful cryptocoin payment/captcha verification
/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}
}





?>

<!DOCTYPE html>
Expand Down
File renamed without changes.
26 changes: 25 additions & 1 deletion Examples/pay-per-download-multi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2014-2015 Delta Consultants
* @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p2
* @live_demo http://gourl.io/lib/examples/pay-per-download-multi.php
* @live_demo https://gourl.io/lib/examples/pay-per-download-multi.php
*/

require_once( "../cryptobox.class.php" );
Expand Down Expand Up @@ -130,6 +130,30 @@
// Optional - Coin selection list (html code)
$coins_list = display_currency_box($available_payments, $def_payment, $def_language, 60, "margin: 80px 0 0 0");






/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}



?>
Expand Down
27 changes: 26 additions & 1 deletion Examples/pay-per-download.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2014-2015 Delta Consultants
* @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p2
* @live_demo http://gourl.io/lib/examples/pay-per-download.php
* @live_demo https://gourl.io/lib/examples/pay-per-download.php
*/

require_once( "../cryptobox.class.php" );
Expand Down Expand Up @@ -91,6 +91,31 @@

// Optional - Language selection list for payment box (html code)
$languages_list = display_language_box($def_language);






/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}



?>
Expand Down
29 changes: 28 additions & 1 deletion Examples/pay-per-membership-multi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2014-2015 Delta Consultants
* @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p6
* @live_demo http://gourl.io/lib/examples/pay-per-membership-multi.php
* @live_demo https://gourl.io/lib/examples/pay-per-membership-multi.php
*/

require_once( "../cryptobox.class.php" );
Expand Down Expand Up @@ -112,6 +112,33 @@
// Optional - Coin selection list (html code)
$coins_list = display_currency_box($available_payments, $def_payment, $def_language, 60, "margin: 80px 0 0 0");
}






/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}



?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
Expand Down
27 changes: 26 additions & 1 deletion Examples/pay-per-membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2014-2015 Delta Consultants
* @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p6
* @live_demo http://gourl.io/lib/examples/pay-per-membership.php
* @live_demo https://gourl.io/lib/examples/pay-per-membership.php
*/

require_once( "../cryptobox.class.php" );
Expand Down Expand Up @@ -72,6 +72,31 @@

// Optional - Language selection list for payment box (html code)
$languages_list = display_language_box($def_language);






/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}



?>
Expand Down
28 changes: 26 additions & 2 deletions Examples/pay-per-page-multi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2014-2015 Delta Consultants
* @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p5
* @live_demo http://gourl.io/lib/examples/pay-per-page-multi.php
* @live_demo https://gourl.io/lib/examples/pay-per-page-multi.php
*/

require_once( "../cryptobox.class.php" );
Expand Down Expand Up @@ -93,7 +93,31 @@

// Optional - Coin selection list (html code)
if (!$box->is_paid()) $coins_list = display_currency_box($available_payments, $def_payment, $def_language, 60, "margin: 80px 0 0 0");







/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}



?>
Expand Down
27 changes: 26 additions & 1 deletion Examples/pay-per-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2014-2015 Delta Consultants
* @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p5
* @live_demo http://gourl.io/lib/examples/pay-per-page.php
* @live_demo https://gourl.io/lib/examples/pay-per-page.php
*/

require_once( "../cryptobox.class.php" );
Expand Down Expand Up @@ -56,6 +56,31 @@

// Optional - Language selection list for payment box (html code)
$languages_list = display_language_box($def_language);






/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}



?>
Expand Down
29 changes: 28 additions & 1 deletion Examples/pay-per-post-multi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2014-2015 Delta Consultants
* @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p3
* @live_demo http://gourl.io/lib/examples/pay-per-post-multi.php
* @live_demo https://gourl.io/lib/examples/pay-per-post-multi.php
*/

require_once( "../cryptobox.class.php" );
Expand Down Expand Up @@ -135,6 +135,33 @@
}
}
// --------------------------






/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}




?>

Expand Down
29 changes: 28 additions & 1 deletion Examples/pay-per-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* copyright (c) 2014-2015 Delta Consultants
* @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
* @website https://gourl.io/bitcoin-payment-gateway-api.html#p3
* @live_demo http://gourl.io/lib/examples/pay-per-post.php
* @live_demo https://gourl.io/lib/examples/pay-per-post.php
*/

require_once( "../cryptobox.class.php" );
Expand Down Expand Up @@ -95,6 +95,33 @@
}
}
// --------------------------






/********************************************************************************************************/
/** This IPN function is used every time a new payment from any user is received successfully **/
/** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
/** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/
/** **/
/** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/
/** More info: https://gourl.io/api-php.html#ipn **/
/********************************************************************************************************/
function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
{
// Your php code here to handle a successful cryptocoin payment/captcha verification
// for example, send confirmation email to user
// update user membership, etc - https://gourl.io/api-php.html#ipn

// .... ....

return true;
}




?>

Expand Down
Loading

0 comments on commit 38c7fd8

Please sign in to comment.