Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment Module classes - how used?


Spinlock

Recommended Posts

Posted

I'm trying to programmatically call the classes that do payment but I'm having a bit of trouble figuring out the sequence of calls and how the payment classes work.

 

What I'd like to do is to write my own PHP page that allows the administrator to manually charge the credit card on orders in the administrative interface. So they can just press a "charge card" button and then it goes to authorize.net or whomever to charge the CC.

 

I'm hoping that I can just instantiate the appropriate payment module class and then call the functions on the class to charge the cc but I'm getting tripped up on the ordering.

 

Here's the functions in the class for authorize.net-

authorizenet - Constructor obviously called first

hmac-

CalculateFP - fingerprint calculation? what's that?

InsertFP - comments say this is required for SIM (SIM?)

update_status-

javascript_validation-

selection-

pre_confirmation_check-

confirmation-

process_button-

before_process-

after_process-

get_error-

check-

install- Can I not install the module and still use it?

remove-

keys-

 

can anyone tell me what order these functions are called normally, to do straight through processing? Just an overview of how the payment modules are called would be helpful.

 

Thanks!

Posted

Some further investigation has turned up this-

 

the constructor check to see if there is a global "orders" object. If so it calls ->update_status()

 

update status does some zone id checking to make sure this should show up for a particular zone

 

Later on in checkout_process.php

 

Definitely there are called to

before_process()

 

and

 

after_process()

 

but there doesn't seem to be any calls in between...

 

Just need a little help to get over this..

Thanks

Archived

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

×
×
  • Create New...