Get Payment Information On Magento?

Jan 12, 2011

I have to export the orders to a file, here is my code to go through the orders:

$orders = Mage::getModel('sales/order')->getCollection()
->addAttributeToSelect(array('status', 'ncm'))

View 1 Replies


Magento Payment : Additional_information Or Payment Attribute ?

I'm wondering which is the better way to add some information to a payment in magento ('s say I want to add an information called "payment_duedate" which would be the date the customer has to pay his invoice.Actually, there is a field in the sales_flat_order_payment called "additional_information" which contain serialized data set by the method setAdditionalInformation($arg1,$arg2); available in the 'sales/payment' model.So I could save my date by :


But one could also choose to add a payment attribute, which would have as effect to create a new column called 'payment_duedate' in the 'sales_flat_order_payment' and then save my date by doing :


The main differences are :

with the "additional_information method", datas are serialized, and so, not queryable easily.

with the "setPaymentDuedate() method", datas are queryable and a new field is created in the table

So, in your opinion, which of the two ways is the best ?

View 1 Replies

Registration And Payment - Save Information Into Database And Process Payment?

When someone registers for an event on my site, we collect their information on a form and then pass it to our merchant provider who processes the payment and then returns the customer to a page on our site depending on if their card was approved or not.

I have a form that collects more information than what the merchant provider requires. For example: Age. I need to save that extra information in my database and then pass the variables required to my merchant provider.This is the opening of the form code provided by the merchant:

Code: [Select]<form id="form" action="https:/[url]..../cgi bin/dbe/" method="post" />

I would like to avoid having multiple pages or clicks for the customer. Is that possible? Can I have the form variables saved to my table AND go to the merchant page in 1 click?

View 5 Replies

Magento Payment Method With Third Party Gateway?

In the checkout process of Magento, I use only the credit card method. In the last step, I need to send all the information collected to an external url at my payment gateway. All the data is processed by the third party gateway, then redirects to my Magento website with the result of the operation. What should I do to achieve this? Where should I start to look? Do i need to modify the magento payment module code?

View 2 Replies

Magento Remove Fields From Payment Method

I've already integrate my website with a 3-party payment gateway, everything is working perfect, but now, i want to remove some fields from the payment method, i just want to use the credit card type in this step, obviously, i can't just delete the html code from appdesignfrontendenterprisemytheme emplatepaymentformccsave.phtml cuz i wont work, i already tried with that, and when you click the continue button, nothing really happen, no error message, nothing

View 1 Replies

Trigger An Event On Payment Received In Magento?

I want to trigger an event, once an order has been set to processing (by gateway confirmation or manually) that, example: If a general customer (id 1) spends over 100$ and the payment has been confirmed, set his group id to 4 (silver VIP, which by promotion rule gets 2% discount globally)I would give a bounty to this, but I'd like the answer before 2 days O_oEDIT: the answer I received so far is only a partial answer, also I find the links very confusing, I'm not clear on what is the minimal setup, what do i have to configure create etc... Also I'm trying to find out how to get the paying customers id/model.

View 3 Replies

Magento Admin Payment Methods Tab Error?

My Magento verions is the admin When i click the System -> Configuration -> Payment Methods it outputs the folling errorTitle: Error Form SubmissionThere has been an error processing your request.Invalid model for shipping method: flatrateuk


View 1 Replies

Magento Payment Review/Suspected Fraud Workflow?

I'm working on a Magento store where the client has requested a few custom filters on orders so that they can be manually reviewed before being sent off to fulfillment. When these cases come up, the orders are marked with the built in Payment Review / Suspected Fraud state/status.

My problem is that, in the admin interface, you don't seem to be able to do much with an order in the Payment Review state. I added a custom 'Approve'-type button for manual approval of the order, but if it's reviewed and confirmed as fraud, what is the expected action to take? I would think to cancel or refund the order but that doesn't seem to be allowed. Checking canCancel or canCreditmemo on the order returns false. Would it be better to use a Hold state or something over Payment Review for a scenario like this?

View 1 Replies

Magento Recurring Profiles With Non-Paypal Payment Method?

Interested to know if (a) this is possible, and (b) whether any of you have successfully implemented the functionality. The wiki page repeatedly refers to "Currently, by default, Magento supports purchasing items with recurring profiles only for the PayPal payment system and only through the Express Checkout method." - I'm not sure if that's because there are no payment other methods currently implementing the Interface, or because they've hardcoded the architecture such that it will only work with Paypal.To test this, I've created a payment method that stubs out the Mage_Payment_Model_Recurring_Profile_MethodInterface methods, and that payment option is now presented when I go through checkout with a Nominal product (i.e. product with a recurring profile) and the order is placed successfully. However it doesn't appear in the list of Sales>Recurring Profiles or Customer's Billing Agreements. I guess they will be populated by the stubbed-out methods.

View 1 Replies

Load Shopping Cart In Magento With A New Payment Module?

I am trying to add a new payment module into Magento. However, even after commenting out the vast majority of the code, I still get the following error:Fatal error: Call to a member function isAvailable() on a non-object in /var/www/html/app/code/core/Mage/Payment/Helper/Data.php on line 71I am using Magento, and have disabled the cache. I even emptied the cache several times just in case.The only code currently not commented out is based on the tutorials here and here.he error occurs when the cart is loaded either from the administration area or the front end.Is there anyone out there that has run into a similar issue? I would post code, but I am not sure what needs to be posted.


View 2 Replies

Magento: Get Customer Detail Fields Before Redirecting To Payment Gateway?

I'm currently in the process of attempting to create a SIM payment method which redirects the customer to a secured site to fill out CC info. I'm needing to collect information from the checkout process such as the customer billing and shipping address, total, tax, shipping (and shipping method), and grand total. Were do I obtain these fields?

View 1 Replies

Magento - Display Payment Fee On The Order Page (admin Backend)

During the checkout process I can use the addTotal method on the address object to add a payment fee to be displayed for the user.

'code' => $this->getCode(),
'title' => Mage::helper('payment')->__('Invoice fee'),
'value' => $fee

Is there any equivilent on the order/invoice object in the administration backend? If not, how can I display my payment fee on the order page (backend)? I've got the payment fee in the sales_flat_order table.

View 1 Replies

Magento - Override GetOrder GetGrandTotal For Purpose Of Changing Amount When Passing The Value To Payment Modules?

I'm trying to change the order grand total programmatically for purpose of allowing users to pay portion of the payment. I tried editing core file Mage_Payment_Model_Info method getMethodInstance

if (method_exists($instance,"getOrder")){
$order = $instance->getOrder();
$session = Mage::getSingleton('checkout/session');
$order = Mage::getModel('sales/order');

I know this is not the best way, but was experimenting to find the best way . How to achieve this? I plan to put the changed in a custom module. so not going to keep changes in core files.

View 1 Replies

Debug Magento Payment Gateways / Disable The Ajax Calls And Make A Regular Post?

I am just a little curious. What can I do to make my debugging experience with payment gateways a little easier. On check out, it always does the ajax calls. So there is no way I can print_r() or echo to see the progression. Is there a easier way to do it without destroying nothing. Is it possible to disable the ajax calls and make a regular post.

View 2 Replies

Get Magento Config Information?

I'm trying to get the base url and the media directory from the Magento configuration and I'm trying to use them for a template that has images. I've only gotten as far Mage::getConfig().

View 1 Replies

Get Store Information In Magento?

How to get active store information like store name,and line number etc in magento?

View 2 Replies

Adding SKU Information To Shopping Cart In Magento?

My client needs to have the sku number, next to the Product Name in the Magento Shopping Cart. I tried adding this code:

<?php echo $this->__('Style Number : %s', $_product->getSku()) ?>

but I get this message:

"Fatal error: Call to a member function getSku() on a non-object."

View 3 Replies

Magento Get Product Information On View Page?

This is probably a very easy question. (many of mine seem to be)But how do you get basic productinformation to be echo'd on product view page. Here are the things I am trying to access:

Inventory Stock Quantity
Restock Date
Essentialy I'm looking for something like
<?php echo $_product->getQty(); ?>

Except that would only give the in cart quantity, but it doesn't even work.

View 3 Replies

POSTing/Sending Credit Card Information To Magento From Different App?

Is it possible to POST CC information to Magento from another store to magento so it can process the payment? In other words, are there any existing plugins or core functionality that allows for that?

View 3 Replies

Get Product Review And Rating Information By Using Magento APIs?

I am using Magento API for getting product information from other server i.e.

$soap = new SoapClient('');
$sessionId = $soap->login('xxxxxxx', 'xxxxxxxx');
$productInfo = $soap->call($sessionId, '','123');

The above code is ok for me for getting product information, but I have to collect product reviews and rating information for the particular product and I am not getting such a method in Magento APIs list [URL] to get it.

View 1 Replies

Get Started Implementing Dps Payment Express Payment Gateway

I have a created a website in which I want to use the online payment procedure Dps Payment Express Payment gateway.

However, I don't know how to go about using it. The website runs on PHP. Does anyone know of any tutorials or example code that shows how to use this system under PHP?

View 1 Replies

Joomla Make Payment With Paypal And Track The Payment?

i have a joomla site and in one article page, i want to sell a book of myne.My users will be visiting this page, and when they click on "Buy" link, they will be shown a form, where they can fill details like name, email, phone and address.Upon submitting the form, i want the user details to be inserted into the database, and then redirect the users to paypal site, for making a small payment towards the purchase.How can i accomplish this? I have heard about Chrono forms in joomla, but cant seem to figure out how to do 2 things simultaneoudly (inserting user details in db, and redirecting to paypal site).

View 1 Replies

Magento Remove & Synchronize Google Base Items By Script In Magento?

I am using magento and my problem is that sync & deleting google base items one by one takes a long time using the control panel.

So I want to know how to create a script that I can use in command line that sync & delete all items listing on google base in magento. I need to be able to relist items too.

View 2 Replies

Magento Admin Management / Developing Extensions In Magento?

This is my scenario

The website contains many stores,

The users are super admin, store admin, customers

Now the super admin have all privileges , but the store admin can able to manage only the categories/Attributes/Products that belongs to that particular store which is assigned to that store admin.


Is there any tutorial available for developing extensions in magento?

View 2 Replies

Split Magento Sites Into Separate Magento Instances?

I was thinking of just copying the entire store and database, and then deleting the other stores from the duplicate, and continue this way until the task is done, and then delete all the sites off of the main store.

View 1 Replies

Access Magento User's Session From Outside Magento?

Im trying to access the Magento customer session in another part of my website. <- Magento

The shop itself works like a charm, however im trying to determine within test.php if a customer is logged in, so I can display his name with a link to his cart.

Contents of test.php so far:

require_once dirname(__FILE__).'/shop/app/Mage.php';
Mage::getSingleton('core/session', array('name' => 'frontend'));

I keep getting bool(false) returned. I'm logged into Magento at so true is expected.

View 2 Replies

Copyrights 2005-15, All rights reserved