cancel
Showing results for 
Search instead for 
Did you mean: 

How to dedicated caterory X like airsoft guns not checkout by AliPay?

SOLVED

How to dedicated caterory X like airsoft guns not checkout by AliPay?

How to dedicated caterory X like airsoft guns not checkout by AliPay? others products are checkout by both PayPal and Alipay?

 

I have a website "https://shop.jkarmy.com" which is using Magento and PayPal right now. Some gears would like to be sold in China, but I have sensitive items (non-real airsoft guns) in my site, How can I dedicated those guns only checkout by PayPal instead of AliPay? or dedicated all products except guns for both PayPal and Alipay users?

Maybe Can I create a dedicated page only for Alipay users and using only Alipay? please kindly advise. https://shop.jkarmy.com/alipayandskrillusers?p=2

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to dedicated caterory X like airsoft guns not checkout by AliPay?

all payment methods extend payment abstract class and fires 'payment_method_is_active' event,

so you can setup a observer for this event and check all the items in quote, in your case check if products are in category X, then modify the checkResult

View solution in original post

2 REPLIES 2

Re: How to dedicated caterory X like airsoft guns not checkout by AliPay?

all payment methods extend payment abstract class and fires 'payment_method_is_active' event,

so you can setup a observer for this event and check all the items in quote, in your case check if products are in category X, then modify the checkResult

Re: How to dedicated caterory X like airsoft guns not checkout by AliPay?

Thank you so much. I will tell to our integrator to do it.