public
Created

  • Download Gist
eshop-authorizenet.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
--- /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='';

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.