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

Braintree: Tokenized Payments Not Working, PFW-372

  • Loading branch information...
kcppdevelopers committed Jan 31, 2019
commit 425daa3015545bc1155bbd275440d6f0752daf00
@@ -1032,6 +1032,9 @@ public function angelleye_do_payment($order) {
return false;
}
$request_data['paymentMethodNonce'] = $payment_method_nonce;
if($this->enable_braintree_drop_in == false && $this->threed_secure_enabled === false) {
$request_data['creditCard']['cardholderName'] = $order->get_formatted_billing_full_name();
}
}
if (is_user_logged_in()) {
$customer_id = get_current_user_id();
@@ -1055,9 +1058,7 @@ public function angelleye_do_payment($order) {
}
$request_data['orderId'] = $order->get_order_number();
$request_data['options'] = $this->get_braintree_options();
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);
@@ -1876,6 +1877,9 @@ public function braintree_create_customer($customer_id) {
'fax' => '',
'website' => ''
);
if($this->enable_braintree_drop_in == false && $this->threed_secure_enabled === false) {
$create_customer_request['creditCard']['cardholderName'] = $firstName . $lastName;
}
$result = Braintree_Customer::create(apply_filters('angelleye_woocommerce_braintree_create_customer_request_args', $create_customer_request));
if ($result->success == true) {
if (!empty($result->customer->id)) {
@@ -2430,6 +2434,9 @@ public function braintree_create_customer_auth($customer_id) {
'fax' => '',
'website' => ''
);
if($this->enable_braintree_drop_in == false && $this->threed_secure_enabled === false) {
$create_customer_request['creditCard']['cardholderName'] = $firstName . $lastName;
}
$result = Braintree_Customer::create(apply_filters('angelleye_woocommerce_braintree_create_customer_request_args', $create_customer_request));
if ($result->success == true) {
if (!empty($result->customer->id)) {
@@ -2466,9 +2473,6 @@ 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;
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.