Skip to content

Instantly share code, notes, and snippets.

@uhnomoli
Created December 5, 2012 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uhnomoli/4217707 to your computer and use it in GitHub Desktop.
Save uhnomoli/4217707 to your computer and use it in GitHub Desktop.
--- /home/andrew/dev/www/wp/wp-content/plugins/eshop/authorizenet.php.old
+++ /home/andrew/dev/www/wp/wp-content/plugins/eshop/authorizenet.php
@@ -125,12 +125,10 @@
//goes direct to this script as nothing needs showing on screen.
if($eshopoptions['cart_success']!=''){
$ilink=add_query_arg('eshopaction','authorizenetipn',get_permalink($eshopoptions['cart_success']));
+ $p->add_field('x_relay_url', $ilink);
}else{
die('<p>'.$derror.'</p>');
}
- $use_xrelay = apply_filters('eshop_authorizenet_xrelay','');
- if ( $use_xrelay != '' )
- $p->add_field('x_relay_url', $ilink);
$p->add_field('shipping_1', eshopShipTaxAmt());
$sttable=$wpdb->prefix.'eshop_states';
--- /home/andrew/dev/www/wp/wp-content/plugins/eshop/authorizenet/authorizenet.class.php.old
+++ /home/andrew/dev/www/wp/wp-content/plugins/eshop/authorizenet/authorizenet.class.php
@@ -87,7 +87,7 @@
<p>';
//test - x_relay_url was causing an error
$use_xrelay = apply_filters('eshop_authorizenet_xrelay','');
- if ( $use_xrelay != '' && isset($espost['x_relay_url']) )
+ if ( isset($espost['x_relay_url']) )
$relayURL=$espost['x_relay_url'];
else
$relayURL='';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment