Payment method modification

  • Posts: 1119
  • Thank you received: 114
5 years 7 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: 5 years 7 months ago by kyratn.

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
5 years 7 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.059 seconds
Powered by Kunena Forum