I'm stumped. I'm not so sure what is the answer to your question. I'll do some investigation and get back to you if I find an useful answer. You should email the people at iPage as they probably can help you..
I have many experiencies with, and now it works well, not with some hair losts..
Can you please tell something more about your needs?.
This should help me to give you more adequate information about..
Thanks for the reply!.
All I need is to POST to my bank's gateway system certain variables, not more that three, ie MerchantCode, Charge, CurrencyCode... that's all. I want to skip the credit card procedure in my site, as a matter of fact, I would prefer something like 2checkout without the filling of the credit card info. There is a contrib for this but it is made for 2checkout, I suppose that it could be modified only I am not sure how to do that. Needless to say that customer should be forwarded to the success page and order should be set as processed if all goes well...
Ok Scud. It's not too difficult. We think your bank work the same way as mine one, ie, we inform card data on the bank routines..
I will base my comments on 2checkout so you can easilly modify it to your needs..
Copy and rename 2checkout files on includes/modules/payment and includes/languages/english/modules/payment (change english to your language, if needed)..
Edit the files and change every pm2checkout to or 2checkout to to module name you choose..
On the classe constructor, function pm2checkout, change the string on $this->form_action_url to your bank address..
Change selection function to suit to your needs of leave just "return array('id' => $this->code, 'module' => $this->title)" if you do not need any data informed by the customer..
Change function pre_confirmation_check to suit to your test needs (on custumer informed data) or leave just a "return false" line..
Now we are on process_button function, the core of the payment module. This code will be processed when the customer click on the confirmation button..
Set the global variables you need, usually $HTTP_POST_VARS and $order..
I will use now the variables you said you need as a sample. The upper case variables will be explained further on this message (install function)..
Define the string $process_button_string as bellow..
$process_button_string = tep_hidden_field('MechandCode', MODULE_PAYMENT_YOURMODNAME_MERCHANDCODE)tep_hidden_field('Charge', $charge)tep_hidden_field('CurrencyCode', $order->info['currency']);.
Include a last line as "return $process_button_string;".
The tep_hidden_field osC function makes an input for the post form used when you presse the confirmation button. The checkout_confirmation.php routine will then use the address step 3 above and will post the variables defined on this step..
You must setup your bank return url to checkout_process.php, in case of success on the it's payment processing so the order can be finalized..
If it occours an error on bank payment processing, it must be configured to redirect to checkout_payment.php..
Change before_process only in the case you need some after bank process and before order process procedures. If not, use a "return false;" single line on this function..
Change after_process only in the case you need some after bank process and after order process procedures. If not, use a "return false;" single line on this function..
Change get_error only in the case your bank returns an error message. Your code should be quite similar to 2checkout code in this function..
Do not change check function..
Change install to suit to your needs. The upper case variable MODULE_PAYMENT_YOURMODNAME_MERCHANDCODE shall be defined here, so you can enter the merchant code on the admin..
Do not change remove function..
Do not forget to update keys function with all the upper case variables defined on the install routine..
Well, I think it's all there. In case of some more questions... I just here!.
This post has been edited by.
: 10 March 2004, 20:16..
Hermetica: YOU RULE MAN!!.
I am in great debt to you... much obliged or "obligado".
I can't wait to wake up tomorrow and give it a try! I will let you know of course if everything is OK... as a matter of fact, I will let you know either way!!.
Thank you so much!.
This post has been edited by.
: 10 March 2004, 21:29..
I really dont want to take advantage of your kindness but I have another question that maybe you can answer... I have included 3-4 form elements in the product info page. Stuff that a customer has to choose from, ie. Number of nights, Departure date, Number of persons, etc. How can I include the values of the selections to the mail message? I know I am supposed to make a variable out of them but how to do this and how to include them to the rest of the procedure I am not aware of... would you happen to know?.
Maybe someone there can help me. I did't find something about till now..
I am starting to developp a payment module for brazilian banks..
This module shall pass the ID information (between others) to the bank page, redirected from the shop, so que payment can be done on the bank page..
After all, the bank page returns all data to a shop page..
Does anyone have other payment module that do something near that so I can use it as a starting point ? .
What variable should we pass for session ID (using cookies)?.
The pages of the bank I am using are in ASP code. Can anyone inform me if variables passed from php pages to asp pages works well? Or should I translate de bank pages to php?.
Thanks a lot !.
I have exactly the same question! please can you help?..