Skip to content

Commit

Permalink
Reverted addOrderRecurringTransaction() method in PayPal Checkout model
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jun 4, 2024
1 parent 280b5d4 commit 4265621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upload/catalog/model/extension/payment/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,11 @@ public function getOrderRecurring($subscription_id) {
}

public function addOrderRecurringTransaction($data) {
$this->db->query("INSERT INTO `" . DB_PREFIX . "order_recurring_transaction` SET `subscription_id` = '" . (int)$data['subscription_id'] . "', `reference` = '" . $this->db->escape($data['reference']) . "', `type` = '" . (int)$data['type'] . "', `amount` = '" . (float)$data['amount'] . "', `date_added` = NOW()");
$this->db->query("INSERT INTO `" . DB_PREFIX . "order_recurring_transaction` SET `order_recurring_id` = '" . (int)$data['order_recurring_id'] . "', `reference` = '" . $this->db->escape($data['reference']) . "', `type` = '" . (int)$data['type'] . "', `amount` = '" . (float)$data['amount'] . "', `date_added` = NOW()");
}

public function deleteOrderRecurringTransaction($subscription_id) {
$query = $this->db->query("DELETE FROM `" . DB_PREFIX . "order_recurring_transaction` WHERE `subscription_id` = '" . (int)$subscription_id . "'");
public function deleteOrderRecurringTransaction($order_recurring_id) {
$query = $this->db->query("DELETE FROM `" . DB_PREFIX . "order_recurring_transaction` WHERE `order_recurring_id` = '" . (int)$order_recurring_id . "'");
}

public function recurringPayment($product_data, $order_data, $paypal_order_data) {
Expand Down

0 comments on commit 4265621

Please sign in to comment.