Skip to content

Commit

Permalink
Paypal Lint part2
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 committed Jul 27, 2024
1 parent 40f21d5 commit 7513add
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions upload/catalog/controller/extension/payment/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,7 @@ public function approveOrder() {
$card_nice_type = (!empty($this->request->post['card_nice_type']) ? $this->request->post['card_nice_type'] : '');
$card_last_digits = '';
$card_expiry = '';
$paypal_order_data = array();

if (!$this->cart->hasShipping()) {
$seller_protection_status = 'NOT_ELIGIBLE';
Expand Down Expand Up @@ -1785,6 +1786,7 @@ public function approveOrder() {
$card_nice_type = (!empty($this->request->post['card_nice_type']) ? $this->request->post['card_nice_type'] : '');
$card_last_digits = '';
$card_expiry = '';
$paypal_order_data = array();

if (!$this->cart->hasShipping()) {
$seller_protection_status = 'NOT_ELIGIBLE';
Expand Down Expand Up @@ -2633,7 +2635,7 @@ public function completeOrder() {

if ($affiliate_info) {
$order_data['affiliate_id'] = $affiliate_info['affiliate_id'];
$order_data['commission'] = ($subtotal / 100) * $affiliate_info['commission'];
$order_data['commission'] = ($sub_total / 100) * $affiliate_info['commission'];
} else {
$order_data['affiliate_id'] = 0;
$order_data['commission'] = 0;
Expand Down Expand Up @@ -2996,6 +2998,7 @@ public function completeOrder() {
$card_nice_type = '';
$card_last_digits = '';
$card_expiry = '';
$paypal_order_data = array();

if (!$this->cart->hasShipping()) {
$seller_protection_status = 'NOT_ELIGIBLE';
Expand Down Expand Up @@ -3128,6 +3131,7 @@ public function completeOrder() {
$card_nice_type = '';
$card_last_digits = '';
$card_expiry = '';
$paypal_order_data = array();

if (!$this->cart->hasShipping()) {
$seller_protection_status = 'NOT_ELIGIBLE';
Expand Down Expand Up @@ -3771,7 +3775,7 @@ public function callback() {
$order_status_id = 0;
$transaction_status = '';
$payment_method = 'card';
$paypal_order_data = [];
$paypal_order_data = array();

if (!$this->cart->hasShipping()) {
$seller_protection_status = 'NOT_ELIGIBLE';
Expand Down Expand Up @@ -3876,7 +3880,7 @@ public function callback() {
$order_status_id = 0;
$transaction_status = '';
$payment_method = 'card';
$paypal_order_data = [];
$paypal_order_data = array();

if (!$this->cart->hasShipping()) {
$seller_protection_status = 'NOT_ELIGIBLE';
Expand Down

0 comments on commit 7513add

Please sign in to comment.