Adding Credit Card Payment Option Commission

10 个月 前
Hello,

I am writing a payment plugin for Turkish virtual pos. I have to add commission when I make installments to my credit card. I can add this amount during checkout, but how can I add it to the saved order?



10 个月 前
Try save selected installment in generic attribute table. Then go to payment processor class. Find GetAdditionalHandlingFee method, calculate additional fee there and return it.

public decimal GetAdditionalHandlingFee(IList<ShoppingCartItem> cart)
{
    //Check selected number of installments and calculate the additional fee for that.
    return {additionalFee};
}
10 个月 前
Hello,

Can you provide sample code on using generic attribute table? How do I access the card information entered by the user through the GetAdditionalHandlingFee method? And I have to reach the basket amount.

Thanks
10 个月 前
I want to ask a question about the Manuel Payment plugin. We, as a company, already have a virtual post terminal, how can we redirect the credit card information from the Manuel Payment plugin not to come to our Control panel in the Orders (we don't want the information about the credit cards, we want just the information about the order) but to go directly to the virtual post terminal of our Bank? Thank you.
10 个月 前
Do you want customer will redirect to bank payment gateway and put card information there? If yes, then you have to develop Redirection type payment method. Implementations will be different for different gateways. You can find example in Nop.Plugin.Payments.PayPalStandard