File indexing completed on 2024-12-29 05:24:49
0001 <?php 0002 /** 0003 * ocs-webserver 0004 * 0005 * Copyright 2016 by pling GmbH. 0006 * 0007 * This file is part of ocs-webserver. 0008 * 0009 * This program is free software: you can redistribute it and/or modify 0010 * it under the terms of the GNU Affero General Public License as 0011 * published by the Free Software Foundation, either version 3 of the 0012 * License, or (at your option) any later version. 0013 * 0014 * This program is distributed in the hope that it will be useful, 0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 * GNU Affero General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Affero General Public License 0020 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 **/ 0022 0023 if ($this->error) { 0024 echo $this->error_text; 0025 } else { 0026 ?> 0027 <div style="text-align: center;"> 0028 <h3>Please wait. We will redirect you to PayPal. </h3> 0029 <p>Or press the Donate button:</p> 0030 <form action="<?= $this->form_endpoint ?>" method="post" target="_top" id="payform"> 0031 <input type="hidden" name="cmd" value="_donations"> 0032 <!--<input type="hidden" name="business" value="paypal@opendesktop.org">--> 0033 <input type="hidden" name="business" value="<?= $this->form_merchant ?>"> 0034 0035 <input type="hidden" name="lc" value="US"> 0036 <input type="hidden" name="item_name" value="Thank you for supporting opendesktop.org"> 0037 <input type="hidden" name="item_number" value="1"> 0038 <input type="hidden" name="currency_code" value="USD"> 0039 <input type="hidden" name="no_note" value="1"> 0040 <input type="hidden" name="no_shipping" value="1"> 0041 <input type="hidden" name="rm" value="1"> 0042 <input type="hidden" name="return" value="<?= $this->form_return_url_ok ?>"> 0043 <input type="hidden" name="cancel_return" value="<?= $this->form_return_url_cancel ?>"> 0044 <input type="hidden" name="notify_url" value="<?= $this->form_ipn_endpoint ?>"> 0045 <input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted"> 0046 <input type="hidden" name="custom" value="<?= $this->transaction_id ?>"> 0047 <input type="hidden" name="amount" value="<?= $this->amount ?>"> 0048 0049 <div class="Actions"> 0050 <input id="submitBtn" type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 0051 <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 0052 </div> 0053 </form> 0054 </div> 0055 <script> 0056 //var dgFlow = new PAYPAL.apps.DGFlow({trigger: 'submitBtn'}); 0057 document.getElementById("payform").submit(); 0058 //document.location.href = "<?= $this->checkoutEndpoint ?>?cmd=_ap-payment&paykey=<?= $this->paymentKey ?>"; 0059 </script> 0060 <?php } ?>