Skip to content

Commit

Permalink
Merge pull request #1194 from angelleye/PFW-188
Browse files Browse the repository at this point in the history
Sale Transactions Not Working When Using Paypal Vault, PFW-188
  • Loading branch information
Andrew Angell committed Aug 28, 2018
2 parents 834382f + 3d14d93 commit 6945fe5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions classes/wc-gateway-paypal-pro-payflow-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,15 @@ function do_payment($order, $card_number, $card_exp, $card_csc) {
$PayPalRequestData['expdate'] = '';
$log['origid'] = $token->get_token();
} else {
$log['acct'] = '****';
$log['cvv2'] = '****';
}
if ($this->is_subscription($order_id)) {
$PayPalRequestData['origid'] = get_post_meta($order_id, '_payment_tokens', true);
$log['origid'] = get_post_meta($order_id, '_payment_tokens', true);
if ($this->is_subscription($order_id)) {
$PayPalRequestData['origid'] = get_post_meta($order_id, '_payment_tokens', true);
$log['origid'] = get_post_meta($order_id, '_payment_tokens', true);
} else {
$log['acct'] = '****';
$log['cvv2'] = '****';
}
}

$this->add_log('PayFlow Request: ' . print_r($log, true));
$PayPalResult = $PayPal->ProcessTransaction(apply_filters('angelleye_woocommerce_paypal_pro_payflow_process_transaction_request_args', $PayPalRequestData));

Expand Down

0 comments on commit 6945fe5

Please sign in to comment.