Simplify and fix the PayPal donation boxes on our website.

This code is already running successfully on the web server for over a month, so it's time to commit it.
This commit is contained in:
Colin Finck 2019-03-01 08:36:04 +01:00
parent ebb6068c17
commit 0c19f4a6ef
No known key found for this signature in database
GPG Key ID: 1BA74E70456BA1A9
2 changed files with 3 additions and 11 deletions

View File

@ -3,8 +3,6 @@
<input type="hidden" name="lc" value="US" />
<input name="landing_page" type="hidden" value="billing" />
<input name="cpp_cart_border_color" type="hidden" value="FF0000" />
<?php
if(!empty($variables['top_logo'])) {
?>
@ -12,16 +10,14 @@
<?php
}
?>
<input name="cpp_payflow_color" type="hidden" value="D20137" />
<input name="business" type="hidden" value="<?php echo $variables['account_email']; ?>" />
<input name="cmd" type="hidden" value="_xclick-subscriptions" />
<input type="hidden" name="src" value="1"/>
<input type="hidden" name="srt" value="24"/>
<input type="hidden" name="srt" value="52"/>
<input type="hidden" name="p3" value="<?php echo $variables['recurring_period']; ?>"/>
<input type="hidden" name="t3" value="<?php echo $variables['recurring_unit']; ?>"/>
<input type="hidden" name="no_note" value="1"/>
<input type="hidden" name="no_shipping" value="2"/>
<input type="hidden" name="notify_url" value="<?php echo $variables['notify_url']; ?>"/>
<input type="hidden" name="no_shipping" value="1"/>
<input type="hidden" name="return" value="<?php echo $variables['return_url']; ?>"/>
<input name="item_name" type="hidden" value="<?php echo $variables['item_name']; ?>" />
<div class="row column">
@ -40,4 +36,4 @@
</div>
<input name="currency_code" type="hidden" value="<?php echo $variables['currency_code']; ?>" /><br />
</div>
</form>
</form>

View File

@ -3,8 +3,6 @@
<input type="hidden" name="lc" value="US" />
<input name="landing_page" type="hidden" value="billing" />
<input name="cpp_cart_border_color" type="hidden" value="FF0000" />
<?php
if(!empty($variables['top_logo'])) {
?>
@ -12,10 +10,8 @@
<?php
}
?>
<input name="cpp_payflow_color" type="hidden" value="D20137" />
<input name="business" type="hidden" value="<?php echo $variables['account_email']; ?>" />
<input name="cmd" type="hidden" value="_donations" />
<input type="hidden" name="notify_url" value="<?php echo $variables['notify_url']; ?>">
<input type="hidden" name="return" value="<?php echo $variables['return_url']; ?>"/>
<input name="item_name" type="hidden" value="<?php echo $variables['item_name']; ?>" />
<div class="row column">