Comments (12)
You can manually check in PHP if payment for this product has already been received.
In Wordpress - please use WooCommerce
from payment-gateway.
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.
Do you use wordpress or php ?
from payment-gateway.
I'm using php.
from payment-gateway.
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.
how can I get orderID ='-your file id-'"))
my file id?
from payment-gateway.
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.
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.
Please use
select paymentID as nme from crypto_payments where orderID ='b3131ee5f6ea9565b9b714cbbe72a0a5'
from payment-gateway.
from payment-gateway.
You need manually generate your orderID and save in DB. After submit to payment box this orderID
from payment-gateway.
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)
- Question: XRP and Stellar Lumens (XLM)?
- Ipn issue HOT 3
- landing_page
- How can someone test the payment integration HOT 1
- Not forwarding coin HOT 3
- Failing on cryptobox.callback.php part HOT 1
- Hi
- How can one confirm payment status directly on your service from a different programming language? HOT 1
- Appliances.protectionLtd
- Refund Request HOT 2
- Is this project still alive? HOT 2
- Testing Questions HOT 1
- Hello
- Bitcoin
- Is the project alive? HOT 2
- Invalid Private Key HOT 1
- Issues with payment
- Hello I need help. HOT 1
- Payment gateway in Bangladesh
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payment-gateway.