Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Optional "get" or "post" method in payme


roblaing

Recommended Posts

While creating a payment module for PayGate, a payment gateway for a South African bank called Standard Bank, I hit the snag that its system requires the merchant ID and amount to be sent to its credit card form using "get" instead of "post".

 

That can be fixed by editing the line

echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');

in checkout_confirmation.php

 

But that strikes me as an inelegant solution because installing the module requires tampering with a core file and it makes it difficult for users without programming skills to change later.

 

I suggest a variable called $form_action_method is used rather than 'post' which is set to either 'get' or 'post' in payment modules.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...