File indexing completed on 2024-12-29 05:24:50
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 0031 <form action="<?= $this->form_endpoint ?>" method="post" target="_top" id="payform"> 0032 <input type="hidden" name="cmd" value="_donations"> 0033 <!--<input type="hidden" name="business" value="paypal@opendesktop.org">--> 0034 <input type="hidden" name="business" value="<?= $this->form_merchant ?>"> 0035 0036 <input type="hidden" name="lc" value="US"> 0037 <input type="hidden" name="item_name" value="Thank you for supporting opendesktop.org"> 0038 <input type="hidden" name="item_number" value="1"> 0039 <input type="hidden" name="currency_code" value="USD"> 0040 <input type="hidden" name="no_note" value="1"> 0041 <input type="hidden" name="no_shipping" value="1"> 0042 <input type="hidden" name="rm" value="1"> 0043 <input type="hidden" name="return" value="<?= $this->form_return_url_ok ?>"> 0044 <input type="hidden" name="cancel_return" value="<?= $this->form_return_url_cancel ?>"> 0045 <input type="hidden" name="notify_url" value="<?= $this->form_ipn_endpoint ?>"> 0046 <input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted"> 0047 <input type="hidden" name="custom" value="<?= $this->transaction_id ?>"> 0048 <input type="hidden" name="amount" value="<?= $this->amount ?>"> 0049 0050 <div class="Actions"> 0051 <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!"> 0052 <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 0053 </div> 0054 </form> 0055 </div> 0056 <script> 0057 //var dgFlow = new PAYPAL.apps.DGFlow({trigger: 'submitBtn'}); 0058 0059 document.getElementById("payform").submit(); 0060 0061 // 0062 //document.location.href = "<?= $this->checkoutEndpoint ?>?cmd=_ap-payment&paykey=<?= $this->paymentKey ?>"; 0063 </script> 0064 <?php } ?>