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'))
[code]..........

ADVERTISEMENT

Magento Payment : Additional_information Or Payment Attribute ?

Feb 8, 2011

I'm wondering which is the better way to add some information to a payment in magento (1.4.1.1).Let'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 :

$payment->setAdditionalInformation('payment_duedate',$myDate);
$payment->save();

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 :

$payment->setPaymentDuedate($myDate);
$payment->save();

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 View Related

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

Feb 15, 2010

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/order.pl" 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 View Related

Magento Payment Method With Third Party Gateway?

Oct 12, 2010

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 View Related

Magento Remove Fields From Payment Method

Mar 14, 2011

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 View Related

Trigger An Event On Payment Received In Magento?

Sep 2, 2009

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 View Related

Magento Admin Payment Methods Tab Error?

Jun 15, 2011

My Magento verions is 1.3.2.1In 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

Trace:
[code]......

View 1 Replies View Related

Magento Payment Review/Suspected Fraud Workflow?

Mar 23, 2011

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 View Related

Magento Recurring Profiles With Non-Paypal Payment Method?

Mar 4, 2011

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 View Related

Load Shopping Cart In Magento With A New Payment Module?

May 27, 2010

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 1.4.0.1, 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.

<CPAP_AuthorizeCim>
[code]........

View 2 Replies View Related

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

Feb 10, 2011

I'm currently in the process of attempting to create a Authroize.net 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 View Related

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

Jan 25, 2011

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.

$address->addTotal(array
(
'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 View Related

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

Jul 15, 2011

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();
}else{
$session = Mage::getSingleton('checkout/session');
$order = Mage::getModel('sales/order');
$order->loadByIncrementId($session->getLastRealOrderId());
}
$total=$order->getGrandTotal()/2;
$order->setGrandTotal($total);

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 View Related

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

Dec 9, 2010

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 View Related

Get Magento Config Information?

Oct 28, 2010

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 View Related

Get Store Information In Magento?

Apr 26, 2010

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

View 2 Replies View Related

Adding SKU Information To Shopping Cart In Magento?

Dec 6, 2010

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 View Related

Magento Get Product Information On View Page?

Jul 6, 2011

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 View Related

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

Feb 21, 2011

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 View Related

Get Product Review And Rating Information By Using Magento APIs?

Jun 2, 2011

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

$soap = new SoapClient('http://example.com/api/soap/?wsdl');
$sessionId = $soap->login('xxxxxxx', 'xxxxxxxx');
$productInfo = $soap->call($sessionId, 'product.info','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 View Related

Get Started Implementing Dps Payment Express Payment Gateway

Mar 7, 2010

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 View Related

Joomla Make Payment With Paypal And Track The Payment?

Jul 7, 2011

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 View Related

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

Feb 26, 2011

I am using magento 1.3.2.4 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 View Related

Magento Admin Management / Developing Extensions In Magento?

Dec 8, 2010

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.

And

Is there any tutorial available for developing extensions in magento?

View 2 Replies View Related

Split Magento Sites Into Separate Magento Instances?

Apr 19, 2011

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 View Related

Access Magento User's Session From Outside Magento?

Jul 8, 2009

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

domain.com/shop/ <- Magento
domain.com/test.php

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:

<?php
require_once dirname(__FILE__).'/shop/app/Mage.php';
umask(0);
Mage::app('default');
Mage::getSingleton('core/session', array('name' => 'frontend'));
var_dump(Mage::getSingleton('customer/session')->isLoggedIn());
?>

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

View 2 Replies View Related

Pass Information Through A Link That Will Tell The User That Their Login Information Is Incorrect.

Jan 19, 2006

i am trying to pass information through a link that will tell the user that their login information is incorrect. the link for the login page looks like this

<a href="index.php?act=login">

now on that page i have this if statement

if (isset($_GET['error'])) {
echo 'Invalid login data supplied. Please try again.'
}


I have tried to make the link
<a href="index.php?act=forgotpass&amp;error=1"> but the error will not display any thoughts?

View 3 Replies View Related

Store Information Between Forms So That The Form Information Is Stored Before Submit?

Feb 11, 2011

This is inside a PHP website form.

An example is like:
First page:
-Username:
-Password[code].....

Review all of the above forms in hard copy but with a back and forward command so that the user does not loose any information when switching between these pages.

View 3 Replies View Related

Use Magento's ORM To Make A Inner Join Between Custom Table And Magento's Table?

Mar 16, 2011

I need to make a inner join between my custom table and one of Magento's entity tables.. how can i do this with Magento's ORM model?

View 1 Replies View Related

Fetch The Information From Other Sites And Store Those Information In To Database?

Jun 22, 2010

Is it possible to fetch the information from other sites and store those information in to my database for my site viewing purpose? Periodically i have to update the info from other site into my database. Updated database will be shown on my site. I don't know whether it is possible or not. If means please let me know how to retrieve the information from other site?

View 4 Replies View Related

Php Web Payment Options

Jul 17, 2005

What would be the best way to add a credit card (and maybe also other
systems) payment option to my php website shop?

Is this something that can be done by a regular developer like me? And
if so where can i find information on how to do this.

Or is it customary/best to let a specialised company handle the actual
payment part of the transaction. And if so what can i expect to pay to
such a company for each transaction, and which are respectable
companies in the "Netherlands" region.

View 8 Replies View Related

Ipn Payment Post

Sep 18, 2007

I am some what new to mysql & php so any help would be appreciated. I have an ipn script I use for payment notification that works with 2checkout. When tha invoice id is passed it marks the invoice paid. I want to modify this so it quries the database for the client id, finds the invoice due & then marks it paid. Here is the code I have that works when an invoice id is passed through the ipn.

$pay_update_sql =
"UPDATE client_invoice
SET invoice_amount_paid=invoice_amount_paid+$invoice_amount_paid,
invoice_date_paid='".mktime()."',
invoice_payment_method=&#391;',
auth_return='$auth_return',
auth_code='$auth_code',
avs_code='$avs_code',
trans_id='$trans_id',
batch_stamp='".mktime()."',
invoice_stamp='".mktime()."'
WHERE invoice_id='$invoice_id'";
...........................

View 5 Replies View Related

Online Payment

Jan 22, 2007

I'm shortly going to be creating a site for selling items and want to be able to process credit/debit cards online.

Since I've never done anything with online payment handling before I was wondering if someone could point me in the right direction for doing this with PHP? I'm running a Unix server with MySQL as well and naturally I'd need an SSL certificate which I can get without any problems.

View 4 Replies View Related

Website Payment Pro

Jun 21, 2007

I am using sandboz account to check my transactions. I submit to paypal through direct method I get following error-

SOAP-ENV:ClientData type '' mismatch in element 'CreditCardType'

View 3 Replies View Related

Payment Processor

Mar 12, 2006

I want to add them as a payment processor in my script, but need to know if it is possible to make a callback to my site if a successful payment was made.

View 3 Replies View Related

First Payment Gateway?

Oct 12, 2010

I'm recently started a project where the client requested I add a payment gateway to it. My first thought was fear, I've always avoided working with cash (because I've never trusted my code that much, and don't pretend I know enough about security), but the more I thought about it, the more I realized it shouldn't be that hard to implement.

View 2 Replies View Related

Payment Gateway

May 23, 2007

how to use payment gateway in php ? or create an application ?

View 2 Replies View Related

Payment Systems

May 18, 2007

does anyone here have a particular payment system they use that integrate well (ie hidden) into their php work? I'm not looking to do one from scratch and worry about security issues, but I also don't want a full paypal ugly thing either. I'd just like soemthign I can hide behind the scenes in my php script. I figure one or two of you must be doing the same. google finds me lots, but I'm sure some are better than others.

View 5 Replies View Related

Paypal Payment

Oct 13, 2007

I have done my shopping cart, my next job is to check out the order and the buyer to bye the product with paypal. what is the best solution with for this job, so simply i have the shopping cart and i want to continue to payment with pay pall.

View 6 Replies View Related

Worldpay Payment Integration

Apr 6, 2006

does anyone know any article or guideline on worldpay payment integration with php?

View 1 Replies View Related

Payment Process Through Nobel Pay

Nov 16, 2003

I am in photo business site. is their any one done any credit card payment process through nobelpay(one of the payment process like paypal, surepay etc..) in php.

If any one have come across this payment process in php. please tell me how to implement the credit card payment process in php using nobelpay payment.

View 2 Replies View Related

Best Way To Update DB After Payment Transaction

Jul 9, 2006

im trying to make a script so users can make payments with paypal

how it works is they log in, go to the payment screen type in a number, then pay with paypal and their login user balance is updated with how much money they just paid on paypal.

the problem is i dont know how to go about updating the database.

the obvious way would be to use the paypal IPN thing which runs a script after the transaction on my server. exactly the kind of thing i need except that i also read that theres a chance that it could fail to go to the script: not good.

so what way would be best to handle the situation?

View 1 Replies View Related

Hsbc As The Payment Gateway

May 18, 2005

I am using Hsbc as the payment gateway. I used the file hsbc.php and in the hidden fields (CpiDirectResultUrl , CpiReturnUrl ) I given my files path (it is in https). But while running it is always showing the CpiResultsCode as 4 (ie, no reponse). What may be the reason? If this problem is already discussed please give me the links.

View 1 Replies View Related

Creating A Payment Module

Jan 10, 2005

I have read some of your threads and have not come up with any solution. I need to have a custom payment module built or find a way to allow my browsers to purchase items on my website without being redirected to the payment processor and offer real time processing at the same time.

This means that Browser A will go to purchase an item on my site, he goes to a page (hosted on my site) that gives him the option of purchasing using the following:
2 Checkout, Clickbank or Paypal. That page must transmit the data to the initial page I got from these payment gateways, process the transaction and return if the transaction has been declined or approved.

View 1 Replies View Related

Payment Processing Sites

Dec 20, 2006

I would like to know if anyone knows anything more about payment processing that has recurring plans? (besides paypal) and the rates and if you recommend them.

View 6 Replies View Related

ADVERTISEMENT