X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Paypal on Invoices (https://forum.x-cart.com/showthread.php?t=68512)

microdaq 01-21-2014 11:10 AM

Paypal on Invoices
 
Hello,

I am trying to show the Payment Methods "Paypal" or "Credit Card" to show up on our invoices.

However, it is only showing "Credit Card" even though it is a "paypal" order.

This is the code inside the order_invoice.tpl that I need to change.

<strong>{$lng.lbl_payment_method}:</strong><br />
{$order.payment_method}<br />


Any idea what $order.payment_method should be changed too?


Steve

tony_sologubov 01-21-2014 12:42 PM

Re: Paypal on Invoices
 
{$order.payment_method} should work properly.

For debug purposes, you can try to call
var_dump($order);

in the admin/order.php script (somewhere close to the end of file) in order to see the whole picture of what $order contains.

microdaq 01-22-2014 08:12 AM

Re: Paypal on Invoices
 
What is happening is that if the customer chooses the Paypal option during checkout then it is processed as a "paypal" order. However, (using Payflow Link as a processor) if the customer chooses credit card as a payment option and they hit the submit button, the Iframe "pops up" with Credit Card and Paypal Payment Options. If they choose paypal as the payment option at this point in the checkout process, "Credit Card" is the Payment method even though it really is not.

qualiteam 01-23-2014 01:33 AM

Re: Paypal on Invoices
 
Since only a few payment systems notify X-Cart what is the actual payment method for an order, X-Cart uses the payment name configured in the back end. So, if a customer chooses "Credit card" method during checkout, "Credit card" will go into the invoice and receipt even if the payment system allows selecting a different one on their website.

What you can do is try to rename the method to something like "Credit card / PayPal". However, I would like to let you know that payment method names you see in recent X-Cart versions were recommended by the PayPal team (we verified our integration with them).


All times are GMT -8. The time now is 02:45 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.