Code Monkey home page Code Monkey logo

Comments (12)

cryptoapi avatar cryptoapi commented on July 29, 2024

You can manually check in PHP if payment for this product has already been received.
In Wordpress - please use WooCommerce

from payment-gateway.

rappc87 avatar rappc87 commented on July 29, 2024

It's not a solution man. if you have 1000 file for sell. and if each will be sold only once. it's so hard. I'm looking for smth like that.

file name : x.zip

if someone already bought x.zip. other people will see "IT'S SOLD".

if it's not possible. I'll create an php file like sold.php. they should auto see sold.php

from payment-gateway.

cryptoapi avatar cryptoapi commented on July 29, 2024

Do you use wordpress or php ?

from payment-gateway.

rappc87 avatar rappc87 commented on July 29, 2024

I'm using php.

from payment-gateway.

cryptoapi avatar cryptoapi commented on July 29, 2024

You can add in php code -
If (run_sql("select paymentID from crypto_payments where orderID ='-your file id-'")) echo "File Sold".

Table crypto_payments stores data of received payments

from payment-gateway.

rappc87 avatar rappc87 commented on July 29, 2024

how can I get orderID ='-your file id-'"))

my file id?

from payment-gateway.

cryptoapi avatar cryptoapi commented on July 29, 2024

Your orderID. It can be fileID if you use it as orderID.

 // All Default Configuration variables
    $options = array(
            "public_key"  => "",
            "private_key" => "",
            **"orderID"     => $orderID,**
            "userID"      => $userID,   // optional
            "userFormat"  => "COOKIE",  // SESSION, IPADDRESS
            "amount"      => 0,
            "amountUSD"   => 0,
            "period"      => "",    // 2 HOUR, 1 DAY, 1 MONTH, NOEXPIRY, etc..
            "iframeID"    => "",    // optional
            "language"    => "EN"
    );

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

https://gourl.io/api-php.html#dev

from payment-gateway.

rappc87 avatar rappc87 commented on July 29, 2024

I used this and it says :

Error in run_sql() - 'nme' not exists! SQL: select paymentID from crypto_payments where orderID ='b3131ee5f6ea9565b9b714cbbe72a0a5'

can we make it like if its possible when like I'm selling on x.php and when it's sold make it like

delete x.php on filezilla or show SOLD.php

from payment-gateway.

cryptoapi avatar cryptoapi commented on July 29, 2024

Please use
select paymentID as nme from crypto_payments where orderID ='b3131ee5f6ea9565b9b714cbbe72a0a5'

from payment-gateway.

rappc87 avatar rappc87 commented on July 29, 2024
I didn't understand the "#" parts. I'm sorry asking a lot but really need it. how can I make them get auto orderID for each sell.php pages and whats as nme part?

from payment-gateway.

cryptoapi avatar cryptoapi commented on July 29, 2024

You need manually generate your orderID and save in DB. After submit to payment box this orderID

from payment-gateway.

rappc87 avatar rappc87 commented on July 29, 2024

I just made an custom 404 page so when it's not found it will show my page.

My 404 page is like File sold. so when someone buy it it will delete the file and buy page then other people will see my custom php file like it's sold.

$path		    = "foldername/$filename";

<?php If (run_sql("select paymentID as nme from crypto_payments where orderID ='$orderID'")) unlink("$path");?>
<?php If (run_sql("select paymentID as nme from crypto_payments where orderID ='$orderID'")) unlink("filebuy1.php");?>

filebuy1.php is this page who bought the file.

example : http://bizzlow.dx.am/bizz/filebuy1.php

this one is my custom 404 page. so when someone bought the file and download it will delete in 2-3 min file and buy page so they will see automatically my sold page. cause filebuy1.php not exist cause it will get deleted after someone bought.

But I have an problem when I do it it's automatically delete before buyer is download. I have 3 ideas.

1 : this php command should wait 2-3 min after someone bought.
2 : this php should count download so when someone download the file it will be +1 then this unlink command will start.

how can I do this?

from payment-gateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.