Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PFW-372 #1284

Merged
merged 4 commits into from Feb 19, 2019
Merged

PFW-372 #1284

Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Braintree: Tokenized Payments Not Working, PFW-372

  • Loading branch information...
kcppdevelopers committed Jan 31, 2019
commit 2e89daf591069848f40ced72fb9ed7c5487ab075
@@ -1055,7 +1055,9 @@ public function angelleye_do_payment($order) {
}
$request_data['orderId'] = $order->get_order_number();
$request_data['options'] = $this->get_braintree_options();
$request_data['creditCard']['cardholderName'] = $order->get_formatted_billing_full_name();
if($this->enable_braintree_drop_in == false && $this->threed_secure_enabled === false) {
$request_data['creditCard']['cardholderName'] = $order->get_formatted_billing_full_name();
}
$request_data['channel'] = 'AngellEYEPayPalforWoo_BT';
if (!empty($this->softdescriptor)) {
$request_data['descriptor'] = array('name' => $this->softdescriptor);
@@ -2025,7 +2027,9 @@ public function process_subscription_payment($order, $amount, $payment_token = n
}
$request_data['orderId'] = $order->get_order_number();
$request_data['options'] = $this->get_braintree_options();
$request_data['creditCard']['cardholderName'] = $order->get_formatted_billing_full_name();
if($this->enable_braintree_drop_in == false && $this->threed_secure_enabled === false) {
$request_data['creditCard']['cardholderName'] = $order->get_formatted_billing_full_name();
}
$request_data['channel'] = 'AngellEYEPayPalforWoo_BT';
if ($this->debug) {
$this->add_log('Begin Braintree_Transaction::sale request');
@@ -2462,7 +2466,9 @@ public function braintree_create_payment_method_auth($braintree_customer_id, $or
$payment_method_request = array('customerId' => $braintree_customer_id, 'paymentMethodNonce' => $payment_method_nonce);
$this->merchant_account_id = $this->angelleye_braintree_get_merchant_account_id();
$payment_method_request['options']['verifyCard'] = true;
$request_data['creditCard']['cardholderName'] = $order->get_formatted_billing_full_name();
if($this->enable_braintree_drop_in == false && $this->threed_secure_enabled === false) {
$payment_method_request['creditCard']['cardholderName'] = $order->get_formatted_billing_full_name();
}
if (isset($this->merchant_account_id) && !empty($this->merchant_account_id)) {
$payment_method_request['options']['verificationMerchantAccountId'] = $this->merchant_account_id;
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.