Magento: is it possible to get credit card processing AVS and CSC? - php

I'd like to get credit card processing AVS and CSC results (pass/no pass, yes/no, etc.) printed on our invoice PDF, but I have no idea if they are available from Magento at all. I don't see it on the backend admin section under the sales orders.
I'm working on this file for the PDF invoice:
/var/www/html/app/code/local/Mage/Sales/Model/Order/Pdf/Abstract.php
Is it along the lines of $order->getPayment()->...?
* UPDATE: *
Payment gateway: Payflow Pro (by Paypal) - this is different from Paypal Express Checkout, where the buyer goes to paypal.com to make a payment.
Magento Enterprise 1.11.2.0

I think this should work , I found it using search for string AVS in magento paypal module
$avs_response=$order->getPayment()->getAdditionalInformation('paypal_avs_code');
and paypal_cvv2_match / CSC?
$csc_response=$order->getPayment()->getAdditionalInformation('paypal_cvv2_match');

Related

How to grab Credit Card Type from Payment Gateway in WooCommerce to display on orders page

I use FirstData for my WooCommerce payment processing. When I pull up orders in WooCommerce, it says: "Payment by Credit Card" but it does not tell me what type of credit card. I just need to know if it was Visa, Mastercard, Discover, or AMEX. We have an online store and a brick-and-mortar retail store. For them to balance at the end of day they need to know the card type used at the order level. We don't want to give them access to the payment gateway.
From a WooCommerce standpoint, there has to be a hand-off between the gateway and woo of some of the basic payment information. I was hoping someone might know how/where I can hook credit card type into the Admin ORders page?
Any help is very appreciated.
Thank you!
Without having to custom code any part of the extension, you can view a customers saved credit card tokens by going into the users profile. The only issue here is that the customer can remove their payment token thus not aligning with older orders that may have been paid with a different credit card. As a workaround however, you can at least view which cards the customer has stored and possibly used at your store with this information.

Paypal standard or Payments Pro

I'm currently using the standard cart function from paypal (using my own PHP to configure the data and price details) to create a shopping cart for services (based off this post: How to send multiple items to PayPal).
However, I need to show the full item price and the deposit amount, and only charge the user the deposit amount. Currently, I have the Deposit Amount set as the Item Price, but I think that will be confusing to users since it doesn't show the full item price. I need to show both the Item Price as the full amount of the product, and then have another label for Deposit Amount that is used as the amount that is charged.
For example, this is what I need to show:
**Service 1**
Item Price: $500
Deposit Amount: $200
___
**Amount Due Now: $200**
Balance Remaining: $300
___
I haven't seen a way to do this using the standard cart function, and was wondering if it's possible to customize these type of variables using Payments Pro.
You can use PayPal Payments Pro or Express Checkout.
Express Checkout allows you to set the call (from the PayPal Developer Documentation)
Call SetExpressCheckout to set up the transaction and define the URL to which the customer is returned after the customer authorizes payment.
Redirect the customer to PayPal for authorization of the payment.
Call GetExpressCheckoutDetails to obtain customer information, e.g. for customer review before payment. (returns to your website, and send the payment details to your cart)
Call DoExpressCheckoutPayment to complete the transaction.
In the return page you can present the final payment amount to the buyer, which will allow you to charge the deposit amount.
Here is the getting started Guide for Express Checkout, which has a complete picture of the typical Express Checkout Flow
Express Checkout Getting Started
You can use the Code Wizard to generate Express Checkout Code.
Integration Wizard
Express checkout also allows for recurring payments if you need to charge someone a deposit now, and then the rest of the payment at a later date. Here is the integration guide for Express Checkout Recurring Payments
Express Checkout Recurring Payments Developer Guide
If you would prefer to use PayPal Payments Pro Payflow edition you can create a custom cart that keeps your buyer's on your website and allows you to charge the card the deposit amount. PayPal Payments Pro Payflow Edition does have recurring payments as an option as well.
Here is the getting started overview for Payflow Pro
Payflow Pro Getting Started Overview
Here is the Payflow Pro Developer Guide

Paypal statuses in Magento

We're facing a problem with paypal in ou Magento Shop (CE 1.7)
Here is the history of our statuses :
-Pending Payment
-Payment verification
-Payment refused by Paypal
But when the payment is refused by paypal, it creates an invoice, then a creditmemo. I don't want this, when the invoice is created, it ask our team to ship the order but this order do not need to be shipped.
How to avoid creating the invoice, or when creating the invoice having a param that stop my shipping process.
Best Regards,
Out-of-the-box Magento requires an invoice to make online payment authorization (or capture), that is to make a request to PayPal and try to charge customer. You should not rely on invoices when shipping orders. In Magento you should use order status instead.

Paypal / Google checkout integration

Is it possible to integrate the Google Checkout API or Paypal API with my marketplace? I am using PHP to generate the market, one auction at the time. I have a MySQL database containing all of the market actions, however, I was wondering. Can I use either Google Checkout or Paypal to dynamically generate the Checkout process, and give the proceeded money to the user whose posted action, then notify me?
I am able to load User details from the MySQL database aswell.
I looked at the 'StackExchange' network, however; I could not figure out where to place this question. Therefore I assumed this was the best place ?
Google Checkout as the term implies is pretty much what it says - it allows a merchant to outsource their checkout operations to Google. I don't think it's a fit because in your case, "merchant" is "dynamic" - its different sellers across auctions. Additionally, Google Checkout isn't for person-to-person payments - its specifically for a merchant (store) to sell products and service at it's web site and have the checkout process handled by Google.
Look into Paypal Adaptive Payments.
You can also look into Amazon FPS .
I'm not familiar with your project's terms such as 'generate the market', 'market actions'
PayPal has reference tranactions in which you can charge same customer's credit card again without storing actual credit card.
Authorize.Net has CustomerPaymentProfile in which they store your customers's credit cards. Then you can submit each customer's paymanet profile, and they'll charge the card for you.
I'm not familiar with Google's automatic checkout without actual credit card.

Magento - Create credit memo / refund programmatically through code

Is there any way of creating a Credit Memo / Refund dynamically through code. I am aware of the fact that Credit Memo can be created using back-end functionality on an invoice but I would like to create a credit memo for a specific order separately based on the following requirements
For selected items
Deduct the shipping cost from the refund
Updating the Stock Qty back
Contacting my payment gateway to perform this refund and transfer the money back into customer's account
I have Sagepay module installed as well for payment purposes and the Refund happens fine using Magento's in built functionality and Sagepay together. But I would like to create a Refund when a customer after shipment asks for refund for few items or all items of a order.
I have created a custom module and am calling a function to perform the refund action. So on call of this function I want to dynamically create Refund for selected items and contact Sagepay to perform the refund transaction for the customer and Magento to update the stock back.
I would just like some help on the starting bits as to where to look for the code and how to combine Sagepay's refund functionality along with Magento's in built one in my module's function call etc ?
Any help is appreciated. Thanks in advance.
I have found an API(see link below) for creating credit memos.
http://www.magentocommerce.com/boards/errors.php/viewthread/215141/

Categories