• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Item shop

  • Thread starter Thread starter verdehile95
  • Start date Start date
V

verdehile95

Guest
I'm configuring the item shop and I have a problem, when I click donate it shows me that something went wrong1000001065.png1000001066.png
 
Let me get my crystal ball out and magically be able to see your code

All That Magic GIF by Nickelodeon
 
<?php
// Your PHP variables here
$paypal_report_url = 'http://eldoria.zapto.org/paypal_report.php';
$paypal_return_url = 'http://eldoria.zapto.org/?subtopic=shopsystem';
$paypal_image = 'https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif';
$paypal_payment_type = '_xclick'; // Use '_donations' for donations

$paypals[0]['mail'] = '';
$paypals[0]['name'] = '100x Punktów Premium!!!';
$paypals[0]['money_amount'] = '1';
$paypals[0]['money_currency'] = 'PLN';
$paypals[0]['premium_points'] = 100;
?>

<!-- The HTML form -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Tag your business so you can collect payments -->
<input type="hidden" name="business" value="<?php echo $paypals[0]['mail']; ?>">

<!-- Especifique um botão de doação. -->
<input type="hidden" name="cmd" value="<?php echo $paypal_payment_type; ?>">

<!-- Specify details about the item buyers will purchase -->
<input type="hidden" name="item_name" value="<?php echo $paypals[0]['name']; ?>">
<input type="hidden" name="amount" value="<?php echo $paypals[0]['money_amount']; ?>">
<input type="hidden" name="currency_code" value="<?php echo $paypals[0]['money_currency']; ?>">

<!-- Callback and notification URLs -->
<input type="hidden" name="return" value="<?php echo $paypal_return_url; ?>">
<input type="hidden" name="notify_url" value="<?php echo $paypal_report_url; ?>">

<!-- Displays the button. -->
<input type="image" name="submit" border="0"
src="<?php echo $paypal_image; ?>"
alt="PayPal - The safer, easier way to pay online">
</form>
 
<?php
// Your PHP variables here
$paypal_report_url = 'http://eldoria.zapto.org/paypal_report.php';
$paypal_return_url = 'http://eldoria.zapto.org/?subtopic=shopsystem';
$paypal_image = 'https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif';
$paypal_payment_type = '_xclick'; // Use '_donations' for donations

$paypals[0]['mail'] = '';
$paypals[0]['name'] = '100x Punktów Premium!!!';
$paypals[0]['money_amount'] = '1';
$paypals[0]['money_currency'] = 'PLN';
$paypals[0]['premium_points'] = 100;
?>

<!-- The HTML form -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Tag your business so you can collect payments -->
<input type="hidden" name="business" value="<?php echo $paypals[0]['mail']; ?>">

<!-- Especifique um botão de doação. -->
<input type="hidden" name="cmd" value="<?php echo $paypal_payment_type; ?>">

<!-- Specify details about the item buyers will purchase -->
<input type="hidden" name="item_name" value="<?php echo $paypals[0]['name']; ?>">
<input type="hidden" name="amount" value="<?php echo $paypals[0]['money_amount']; ?>">
<input type="hidden" name="currency_code" value="<?php echo $paypals[0]['money_currency']; ?>">

<!-- Callback and notification URLs -->
<input type="hidden" name="return" value="<?php echo $paypal_return_url; ?>">
<input type="hidden" name="notify_url" value="<?php echo $paypal_report_url; ?>">

<!-- Displays the button. -->
<input type="image" name="submit" border="0"
src="<?php echo $paypal_image; ?>"
alt="PayPal - The safer, easier way to pay online">
</form>
I assume this was not empty?
PHP:
$paypals[0]['mail'] = '';
 

Similar threads

Back
Top