Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Is it possible to add credit card number using setCcNumber OR setCcNumberEnc
 
katherinbridges
Jr. Member
 
Total Posts:  29
Joined:  2009-08-27
 

Hi,
I am using magento 1.6, i have code to create order programmatically. The order is created successfully but credit card number is not store.
I have tried both function setCcNumber and setCcNumberEnc but in vain. My code is like this.

$convertQuoteObj Mage::getSingleton('sales/convert_quote');
$orderObj $convertQuoteObj->addressToOrder($quoteObj->getShippingAddress());
$orderPaymentObj $convertQuoteObj->paymentToOrderPayment($quotePaymentObj);
$orderObj->setPayment($convertQuoteObj->paymentToOrderPayment($quoteObj->getPayment()));
$orderObj->getPayment()->setCcNumber('6011111111111117');
$orderObj->getPayment()->setCcNumberEnc('6011111111111117');
I have tried both setCcNumber and setCcNumberEnc. If I used setCcNumber, the credit card number displayed empty in order detail page and if I use setCnNumberEnc then the garbage characters are displayed in order detail page in admin panel.
Your suggestion will be helpful to decide is this task possible or not.

Thank you

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top