I receive credit card details in email like 4574xxxxx in email, but I want all the digit of credit card no in email, I don`t know which template is using for sending email. Please help for displaying full credit card no in email template.
Show Full Credit Card Information in Sales Email in Magento
magento-1.8
Related Solutions
At last i was able to figure out how to do it. Thought to share the answer so someone like me can save the time and spend it for some fruitful purpose :P
So, what i did was
1) I checked for PayPal's API Calls from developer profile. The link for it is PayPal API
To open the credit card option by default you need to pass the API with parameters LANDINGPAGE=Billing
.
2) Searched for API calls in Magento for PayPal and found the file Nvp.php
at app/code/core/Mage/Paypal/Model/Api/Nvp.php
3) Search for the function callSetExpressCheckout()
after $this->_exportLineItems($request);
enter the following line $request['LANDINGPAGE'] = 'Billing';
This is all. Now test it using Express Checkout. I haven't yet tested it thorougly. Please add up to the answer if there are any better suggestion for it.
I've hit a similar brick wall once.
After digging in the code I found that you cannot use payment methods that required a redirect to the payment gateway in multishipping checkout. I may be wrong here, but here is the reasons of my conclusion.
In the onepage checkout, when saving the order Mage_Checkout_OnepageController::saveOrderAction
there is this code:
$redirectUrl = $this->getOnepage()->getCheckout()->getRedirectUrl();
.....
if (isset($redirectUrl)) {
$result['redirect'] = $redirectUrl;
}
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
and in opcheckout.js
in the review
class there is this:
if (response.redirect) {
this.isSuccess = true;
location.href = response.redirect;
return;
}
So if there is a redirect url specified you will get redirected to that url.
There is something similar in the savePaymentAction
.
I found no trace of something like that in the MultishippingController
. take a look at what overviewPostAction
does. (that's where the payment is processed).
After saving a few details about the credit card type (if applicable) this is called.
$this->_getCheckout()->createOrders();
The main attraction in the createOrders
method is
foreach ($orders as $order) {
$order->place();
$order->save();
if ($order->getCanSendNewEmailFlag()){
$order->sendNewOrderEmail();
}
$orderIds[$order->getId()] = $order->getIncrementId();
}
So nothing about any redirect.
An other thing that made me reach this conclusion is that most of the online payment methods that Magento has by default are not allowed in the multishipping checkout.
Look in the code for the variable $_canUseForMultishipping
. It is set to false
for most of the online payment methods.
I guess the safest solution would be to disable your method for multishipping.
You can do that by adding
protected $_canUseForMultishipping = false;
to the model that handles the payment method.
I ended up doing the same in my case.
Best Answer
This is a seriously bad idea. This would play into the hands of fraudsters since email content will very likely be sent in plain text through the internets.