Payment method modification

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #297277

Hi,

Quick question.

As example we have 3 payment methods and they all use different payment plugins.

Should we do our modifications inside each plugin or we can modify end.php file and use:

<?php if($this->order->order_payment_id == 'XX'){ ?>

for each payment method to show it's html?

What is the right way regarding performance?

In future we should add few more payment methods and end.php file could be a little bit heavy i guess...

Please advise?

Thank you

Last edit: 6 years 2 months ago by kyratn.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 2 months ago #297300

Hi,

Well, it depends what kind of modification you need to do.

Performances won't be impacted whatever the way you do it.

The modification in end.php would allow you to get easily the updates we add in the payment plugins when they do changes on the payment gateway side (for security for example).

The following user(s) said Thank You: kyratn

Please Log in or Create an account to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum