PayPalDirect Card Type

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
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
10 years ago
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
10 years ago
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
10 years ago
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.
10 years ago
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
10 years ago
see your PM....
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.