cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate payment methods to specific customer?

How to integrate payment methods to specific customer?

Hi,

I am new in Magento platform and start to move an existing website to magento.

I want to integrate payment methods to specific customer. Also want to add default payment methods to new customer.

How to do that?

 

 

 

3 REPLIES 3

Re: How to integrate payment methods to specific customer?


@rajib_arp wrote:

Hi,

I am new in Magento platform and start to move an existing website to magento.

I want to integrate payment methods to specific customer. Also want to add default payment methods to new customer.

How to do that?

 

 

 


 

Hi,
Look at this thread. http://magento.stackexchange.com/questions/33047/displaying-certain-payment-methods-for-customer-gro...

It handles event/observer pattern. The recommended answer payment_method_is_active.

 

There is also a free extension recommended in that link. Install the same and check the code for the event.

 

Hope this helps..

Re: How to integrate payment methods to specific customer?

Hi

Thanks for your reply.

But my requirement is to integrate payment methods with single customer, not with any customer group as our existing site works on this logic.

It will be helpful if you provide detail coding about this integration as I have already looked so many threads but none of them suits my requirement.

 

Re: How to integrate payment methods to specific customer?


@rajib_arp wrote:

Hi

Thanks for your reply.

But my requirement is to integrate payment methods with single customer, not with any customer group as our existing site works on this logic.

It will be helpful if you provide detail coding about this integration as I have already looked so many threads but none of them suits my requirement.

 


 

i will approach the situation given below.. I just made my try. Culd be a solution or not. Remove space for links as I am not able to post links in forum.

 

1) create customer extra attribute with this extension. http : //www . magentocommerce . com/magento-connect/manage-customer-attributes.html
remember not to show the extra attribute to the customer during new user registration. You could check with the screen shot where the visibility area. You dont need to show this attribute to anywhere at all since this will be a hidden value that holds the payment types for each

 

2) We can get a new tab in the customer edit page. look at this link that talks about creating new extension. http : //www . mydons . com/how-to-add-custom-tabs-to-magento-customer-edit-page/ You have to show the list of active payment with this extension.

 

3)How to get the active payments is guided in this link http ://inchoo .net/magento/magento-how-to-get-all-active-payment-modules/

 

4)Now everything is set. We have a structure. Now the idea is, when we select the customer exta tab, created by point 2 of above, we should list all the available payment methods as a listdropdown. Hope you are getting an Idea.

 

5)When we select any of the payment gatway for that customer and click save then the payment gatway value should be stored in the customer attribute created from step one of above. We need to know the proper event that should be created in the observer. You could use the extension created in step-2 of above. The event that needed is "adminhtml_customer_save_after". http : //magento.stackexchange . com/questions/15155/customer-save-after-event-is-not-working-in-admin-side (correct me if i am wrong) In the Observer.php you could get the $_GET[''] (equelent with magento function) and pragmatically assign the selected payment in the customer attribute.

 

6)In the check-out page, get the customer id and get the attribute value created from step-1. Show accordingly.

I hope only registered user could check-out in this situation. If its a unregistered user then show the common payment gatway.