PDA

View Full Version : Bank Transfer as a Payment method


awyckma
August 25th, 2003, 07:36 AM
Hi,

I am setting up a new payment method, a bank transfer, as a new payment method.

The method has the following conditions: Afte the customer places his order he/she should get additional instructions at the end of the order with some instructions to follow like the account number to transfer the money to, the ordernumber to use, etc.

I was think to re-use of the predefined methods like the 'check or money order' because we do not use/offer this kind of payment.

I saw some threads about this posted by Jamie explaing how to make changes in the code etc.

Are these explinations the right ones to follow to adapt.create the payment method I want?

Thanks,

Greetings from Belgium

Alex Wyckmans

Jamie
August 27th, 2003, 12:59 AM
Hi Alex,

Yes, you could certainly follow that documentation. The tricky part is collecting that information, and passing it somewhere.

-Jamie

christopherO
April 4th, 2006, 07:53 AM
awyckma - Jamie

Did you get this to work?

I guess the procedure may have changed for v2 but I also need a bank credit option - all it needs is for the bank details to appear in place of address info as with cheque payment?

Any guidance would be appreciated.

Jamie
April 4th, 2006, 08:55 AM
This page of the documentation explains how to create a custom payment method:
http://squirrelcart.com/help/?Custom%20Methods.html

christopherO
April 8th, 2006, 08:06 AM
Thank you Jamie

marty177
August 27th, 2006, 12:17 PM
Hi Jamie,

Thanks for your help above. I've done a custom page modelled off the check.php page. I've called it deposit.php for people to do an internet bank transfer. I folowed the instructions fine and it appears during the checkout.

The problem is when I select the radio button for it and click continue, it does some thinking but stays on the same page. The only thing I've added was the $SC['complete_order'] = 1; at the top of the page and entered our bank details.

Thanks for your help,
Marty

jennpeter
October 7th, 2006, 06:04 AM
Have you been able to fix this problem?

I have tried to do a similar thing and I followed the instructions and the Type field resets when I go back in to edit the payment method

marty177
October 7th, 2006, 09:12 AM
Hi there,

No unfortunately I haven't been able to figure it out yet. Maybe someone else might be able to suggest something to us?

Kind regards,
Marty

Jamie
October 9th, 2006, 02:08 PM
I have tried to do a similar thing and I followed the instructions and the Type field resets when I go back in to edit the payment method
This should help: http://www.ldev.com/forums/showthread.php?p=11375#post11375

marty177
January 23rd, 2007, 07:01 PM
I was just wondering if there is a bi of code we could add to set the initial status of this payment to 'payment pending'?

Cheers,
Marty

Jamie
January 25th, 2007, 08:46 AM
The call to complete_order() handles that, along with completing the order. Calling it like this makes the default status payment pending:
<?php complete_order(0,0,7); ?>

Parameters are as follows:
Purpose:
Execute all the code that needs to run after a successfull order placement (place_order.func)

Input Parameters:
$no_order_detail (boolean) prevent order detail from appearing
$no_order_email (boolean) Setting this to 1 will keep the customer from being emailed
$status_rn (integer) Optional - set to an integer representing a status you want to assign to the order

Return Paramters:
returns the order record number