- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
_Dom_
ok im using the example php script giving to us via paypal.
my site uses a points system
points are 2p each and can be bought in 50s
i have a simple select box (name='amount') and a submit box which pass's it onto the process.php
but i also have 2 hidden variables (username and code)
username is the username so when it gets to the IPN i can update the database and the code is a random code generated so i can check that the payment has been done (i know it might be hard to foil IPN but id like to try this random code anyway)
the problem is when i complete my payment some of the variables are not appearing on sucess.php including:
username
code
amount
i have added the following code
success.php
<tr align="left" valign="top">
<td bgcolor="#EEEEEE">Amount:</td>
<td bgcolor="#EEEEEE">
<?=$_POST[amount]?>
</td>
</tr>
<tr align="left" valign="top">
<td bgcolor="#EEEEEE">Username:</td>
<td bgcolor="#EEEEEE">
<?=$_POST[username]?>
</td>
</tr>
<tr align="left" valign="top">
<td bgcolor="#EEEEEE">Code:</td>
<td bgcolor="#EEEEEE">
<?=$_POST
</td>
</tr>
config.inc.php
$paypal[username]="$_POST[username]";
$paypal[code]="$_POST[code]";
global_config.inc.php
<input type="hidden" name="username" value="<?=$paypal[username]?>">
<input type="hidden" name="code" value="<?=$paypal[code]?>">
as you can probably tell there aremany variables i do not need such as first name/last name / address or shipping costs so i have tryed to shorten the script as much as possible
if anyone could give me a hand i would be very very very greatful
thanks a lot
Link to comment
https://www.neowin.net/forum/topic/282530-php-paypal-connection/Share on other sites
0 answers to this question
Recommended Posts