lat9:
Let's give this a try. First, make a backup of your site's /includes/modules/payment/paypal/paypalwpp_admin_notification.php. Then find this section (starting at line 448 in the as-shipped zc210 version):
$authcapt_on = (isset($_GET['authcapt']) && $_GET['authcapt'] == 'on');
if (isset($response['RESPMSG']) /|| defined('MODULE_PAYMENT_PAYFLOW_STATUS')/) { // payflow
$output .= $outputPFmain;
if (method_exists($this, '_doVoid') && (MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE == 'Auth Only' || (defined('MODULE_PAYMENT_PAYFLOW_TRANSACTION_MODE') && MODULE_PAYMENT_PAYFLOW_TRANSACTION_MODE == 'Auth Only') || $authcapt_on)) {
$output .= $outputVoid;
}
if (method_exists($this, '_doCapt') && (MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE == 'Auth Only' || (defined('MODULE_PAYMENT_PAYFLOW_TRANSACTION_MODE') && MODULE_PAYMENT_PAYFLOW_TRANSACTION_MODE == 'Auth Only') || $authcapt_on)) {
$output .= $outputCapt;
}
if (method_exists($this, '_doRefund')) {
$output .= $outputRefund;
}
} else { // PayPal
$output .= $outputPayPal; // one table row, four cells, one table in each
$output .= $outputEndBlock; // close first table
if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') || defined('MODULE_PAYMENT_PAYPALDP_STATUS')) {
$output .= $outputStartBlock; //start second table
$transaction_type_authorization = (isset($response['TRANSACTION_TYPE']) && $response['TRANSACTION_TYPE'] == 'Authorization');
$transactiontype_payment = (isset($response['TRANSACTION_TYPE']) && in_array($response['TRANSACTIONTYPE'], ['cart', 'expresscheckout', 'webaccept']));
if ($transaction_type_authorization || ($transactiontype_payment && $response['PAYMENTTYPE'] == 'instant' && $response['PENDINGREASON'] == 'authorization') || $authcapt_on) {
if (method_exists($this, '_doRefund') && ($response['PAYMENTTYPE'] != 'instant' || $module == 'paypaldp')) {
$output .= $outputRefund;
}
if (MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE == 'Auth Only' || MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE == 'Auth Only') {
if (method_exists($this, '_doAuth')) {
$output .= $outputAuth;
}
if (method_exists($this, '_doCapt')) {
$output .= $outputCapt;
}
}
> Make the highlighted changes/additions:
> ```
$authcapt_on = (isset($_GET['authcapt']) && $_GET['authcapt'] == 'on');
[B]$transaction_mode = ($this->code === 'paypaldp') ? MODULE_PAYMENT_PAYPALDP_TRANSACTION_MODE : MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE;[/B]
if (isset($response['RESPMSG']) /*|| defined('MODULE_PAYMENT_PAYFLOW_STATUS')*/) { // payflow
$output .= $outputPFmain;
if (method_exists($this, '_doVoid') && ([B]$transaction_mode ===[/B] 'Auth Only' || (defined('MODULE_PAYMENT_PAYFLOW_TRANSACTION_MODE') && MODULE_PAYMENT_PAYFLOW_TRANSACTION_MODE == 'Auth Only') || $authcapt_on)) {
$output .= $outputVoid;
}
if (method_exists($this, '_doCapt') && ([B]$transaction_mode ===[/B] 'Auth Only' || (defined('MODULE_PAYMENT_PAYFLOW_TRANSACTION_MODE') && MODULE_PAYMENT_PAYFLOW_TRANSACTION_MODE == 'Auth Only') || $authcapt_on)) {
$output .= $outputCapt;
}
if (method_exists($this, '_doRefund')) {
$output .= $outputRefund;
}
} else { // PayPal
$output .= $outputPayPal; // one table row, four cells, one table in each
$output .= $outputEndBlock; // close first table
if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') || defined('MODULE_PAYMENT_PAYPALDP_STATUS')) {
$output .= $outputStartBlock; //start second table
$transaction_type_authorization = (isset($response['TRANSACTION_TYPE']) && $response['TRANSACTION_TYPE'] == 'Authorization');
$transactiontype_payment = (isset($response['TRANSACTION_TYPE']) && in_array($response['TRANSACTIONTYPE'], ['cart', 'expresscheckout', 'webaccept']));
if ($transaction_type_authorization || ($transactiontype_payment && $response['PAYMENTTYPE'] == 'instant' && $response['PENDINGREASON'] == 'authorization') || $authcapt_on) {
if (method_exists($this, '_doRefund') && ($response['PAYMENTTYPE'] != 'instant' || $module == 'paypaldp')) {
$output .= $outputRefund;
}
if ([B]$transaction_mode === 'Auth Only'[/B]) {
if (method_exists($this, '_doAuth')) {
$output .= $outputAuth;
}
if (method_exists($this, '_doCapt')) {
$output .= $outputCapt;
}
Hi Cindy,
I changed the code in the 4 locations in red and i placed a small test order using credit card and the result is the same but without the void option.
