wpsc_purchase_log_gateway_data

Located in: purchase-log.class.php

Functions that call this hook: WPSC_Purchase_Log::get_gateway_data()

Arguments Accepted: $this->gateway_data, $this->data

Version Introduced: 3.8.9

Description: Filter purchase log data (formatted for payment gateways) before it is returned.

Code in context:

[php highlight=”431″ firstline=”423″]

if ( $from_currency ) {

// adjust total amount in case there’s slight decimal error

$total = $subtotal + $shipping + $this->gateway_data[‘tax’] – $this->gateway_data[‘discount’];

if ( $this->gateway_data[‘amount’] != $total )

$this->gateway_data[‘amount’] = $total;

}

$this->gateway_data = apply_filters( ‘wpsc_purchase_log_gateway_data’, $this->gateway_data, $this->get_data() );

return $this->gateway_data;

[/php]