Reply To: hook addition requests

Bring Your Business to LifeSupportImage Storehook addition requestsReply To: hook addition requests

#78664
lch503
Participant

Thanks,

Could you also make the following change to sagepay.php

in the function add_hidden_fields( $output ),

could you add a conditional statement for the lines

$crypt .= ‘BillingState=’ . $data[‘billing_state’] . ‘&’;

and

$crypt .= ‘DeliveryState=’ . $data[‘address_state’] . ‘&’;

as these are only required for the US, at the moment I must comment these out after every release.

So, for example in psuedocode

if ( currency = US dollars ) $crypt .= ‘BillingState=’ . $data[‘billing_state’] . ‘&’;

and

if ( currency = US dollars ) $crypt .= ‘DeliveryState=’ . $data[‘address_state’] . ‘&’;

Thanks!