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