PayPalDirect Card Type

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 9 ans
Hi,
Sorry if this question has been answered elsewhere, but I have looked all morning and can't find a solution.

We use PayPalDirect to take card payments, but have noticed that the card types are American cards that are causing a massive cart abandonment as we are a UK company.

Is there any way I can change the dropdown list of card types? I have opened every file in the Payments.PayPalDirect plugin folder and cant find a list of cards anywhere?

Thanks
Neil
Il y a 9 ans
You can find the 'items' here:

\Plugins\Nop.Plugin.Payments.PayPalDirect\Controllers\PaymentPayPalDirectController


public ActionResult PaymentInfo()
        {
            var model = new PaymentInfoModel();

            //CC types
            model.CreditCardTypes.Add(new SelectListItem
            {
                Text = "Visa",
                Value = "Visa",
            });
            model.CreditCardTypes.Add(new SelectListItem
            {
                Text = "Master card",
                Value = "MasterCard",
            });
            model.CreditCardTypes.Add(new SelectListItem
            {
                Text = "Discover",
                Value = "Discover",
            });
            model.CreditCardTypes.Add(new SelectListItem
            {
                Text = "Amex",
                Value = "Amex",
            });
  ....


you must edit the source and recompile the plugin
Il y a 9 ans
Hi,

Thanks for that, its much appreciated.

Im not sure what im missing here, but when I open the \Plugins\ folder (in ftp) there is no Nop.Plugin.Payments.PayPalDirect folder, just a \Payments.PayPalDirect folder that has no \controllers\ folder in it. Where am I going wrong?

Sorry if im being stupid?


Thanks
Neil
Il y a 9 ans
You cannot edit this on the server, you must do some changes on source code and recompile/build the plugin.
I gave you the folder-structure from source.
Il y a 9 ans
Ah, I see. I used the no source version. Is there anywhere that will do this for me as a paid service so I can just re-upload the plugin?

Thanks
Neil
Il y a 9 ans
see your PM....
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.