Skip to content

Commit

Permalink
Pulled the order product as the recurring_name
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jan 20, 2024
1 parent ca732c8 commit 0fe1b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/catalog/model/extension/payment/opayo.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function subscriptionPayment(array $item, string $vendor_tx_code): void {

$recurring_frequency = date_diff(new \DateTime('now'), new \DateTime(date_format($next_payment, 'Y-m-d H:i:s')))->days;

$response_data = $this->setPaymentData($order_info, $opayo_order_info, $price, $subscription_id, $item['subscription']['name'], $recurring_expiry, $recurring_frequency);
$response_data = $this->setPaymentData($order_info, $opayo_order_info, $price, $subscription_id, $order_product['name'], $recurring_expiry, $recurring_frequency);

$this->addRecurringOrder($this->session->data['order_id'], $response_data, $subscription_id, date_format($trial_end, 'Y-m-d H:i:s'), date_format($subscription_end, 'Y-m-d H:i:s'));

Expand Down

0 comments on commit 0fe1b33

Please sign in to comment.