Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
13 votes
Accepted

Magento2 Rest API Order Flow

I have used a fresh installation for the following using Magento2 CE 2.2.0-dev, and left the default "Luma" theme as well. Concerning external payment methods (gateways) such as MiGS, Braintree, ...
user avatar
12 votes
Accepted

magento 2 order confirmation email sending before payment gatway redirection

I was facing same issue but I found alternative solution like I turned off Magento default Order Confirmation email and Send Order Confirmation Email When Order is being placed Successfully. Here are ...
user avatar
10 votes
Accepted

Magento 2 Escrow Payment Integration

Vendor/Modulename/etc/config.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Store/etc/config.xsd"> <...
user avatar
9 votes
Accepted

Getting additional information (additional_data) form Magento 2 payment Object

So I Finally figured this out. Going by the number of similar questions, I feel it may be of use to a few people Following the example of paypals PayflowProAddCcData observer, I modified my observer ...
user avatar
8 votes
Accepted

Magento 2: How to set VaultProvider?

After some R&D I got the solution myself. First I created a class in my module: namespace VendorName\ModuleName\Model\Payment; class Payflowpro { public function __construct( \Magento\...
user avatar
8 votes
Accepted

Magento 2 Payment method : Add custom Select field that I can use in checkout process

Please follow this blog so you can get idea how to pass data payment form. create configprovider.php and di.xml. I have posted basic code which you can modified as per your requirement. create ...
user avatar
  • 1,443
8 votes
Accepted

How to post data to a payment provider when placing an order in Magento 2

As @Yogesh said in the comment, it depends on payment gateway and it's API. I see at least few possible solutions with different variations and without API documentation for payment gateway, it would ...
user avatar
  • 2,489
7 votes
Accepted

Paypal shipping address errors

You can do the following if you don't want to change core files: Create folders Mage/Paypal/Model/Api under /app/code/local/ Copy the file Standard.php from /app/code/core/Mage/Paypal/Model/Api Paste ...
user avatar
7 votes
Accepted

How to add custom payment gateway extension in magento2

The common tutorial for adding custom payment integration is still in process, but you can use sample-module-payment-gateway as an example. Also, the off dev doc describes how to add a custom payment ...
user avatar
  • 2,489
7 votes
Accepted

Magento 2 Redirect to 3rd party payment gateway with post data

In Magento 2 you have to create custom JavaScript component responsible for redirect to a Payment Provider. So how it works in Magento 2. Custom redirect.html template with "Place Order" button ...
user avatar
  • 1,755
7 votes
Accepted

How to bypass CSRF validation for certain requests like payment gateway webhook?

You can add a formKey to your request. Magento checks in the validateRequest function at Magento\Framework\App\Request\CsrfValidator if the request is intance of CsrfAwareActionInterface, not a post ...
user avatar
  • 851
6 votes
Accepted

Disable payment method only for admin?

Jaydeep Sinh Parmar,can do this by Magento Event/Observer First,using payment_method_is_active disable on depends current store. Code for this: Module config.xml code: <global> <...
user avatar
  • 75.5k
6 votes

magento 2 order confirmation email sending before payment gatway redirection

This can be achieved by rewriting Magento\Sales\Model\Order\Email\Sender\OrderSender::send function, For that first add the following in your di.xml <preference for="Magento\Sales\Model\Order\...
user avatar
  • 856
6 votes

Is any Payment Gateway exits for overseas customer pay as a dollar for my INR (INDIA) currency based websites

I did a bit of research about it and this is what I understand. Unfortunately PayPal does not seem to be accepted in India to pay in INR. You can use PayPal in India if you want to sell your ...
user avatar
  • 2,255
6 votes

How to post data to a payment provider when placing an order in Magento 2

Here's my final solution to help others that are struggling with this: Part 1: Create a basic module/payment method (http://devdocs.magento.com/guides/v2.2/howdoi/checkout/checkout_payment.html & ...
user avatar
  • 2,707
5 votes
Accepted

Multiple Checkout Payment Gateway Redirection Issue

I've hit a similar brick wall once. After digging in the code I found that you cannot use payment methods that required a redirect to the payment gateway in multishipping checkout. I may be wrong here,...
user avatar
  • 195k
5 votes

PxFusion DPS Payment Express

Here's the PxFusion done by official DPS partner. It has just been released recently http://www.moustacherepublic.com/payment-express-dps-pxfusion.html
user avatar
5 votes

getPayment() method returning boolean

look at the line $order = Mage::getModel('sales/order')->load($OrderId, 'increment_id'); Change that to $order = Mage::getModel('sales/order')->load($orderId, 'increment_id'); Notice how you used a ...
user avatar
  • 326
4 votes

PxFusion DPS Payment Express

Step one for any payment extension is: Ask the payment processor themselves how to integrate with Magento. Chances are they've gotten the question before and can point you towards some options. Step ...
user avatar
  • 43.5k
4 votes

PxFusion DPS Payment Express

I am the developer behind the free Magebase DPS extension which offers support for PxPost and PxPay/PxPay2.0. We also offer a pro version, which is commercial, which now supports PxFusion as a fully ...
user avatar
4 votes

Cannot cancel order on backend

If you look into the function canCancel under Mage_Sales_Model_Order then you can see what in what situations an order can or cannot be cancelled. The following need to be true before an order can be ...
user avatar
4 votes

Authorize.net Direct Post hash validation failed

The answer of philwinkle is fine. In my case additionally the md5-hash which I had set in authorize.net and Magento was too long. It caused a different hash calculation in ...
user avatar
4 votes
Accepted

How to change the order status cancel in magento after payment cancelled from MIGS Payment Gateway?

try $order->cancel(); $order->setState(Mage_Sales_Model_Order::STATE_CANCELED, true, 'Cancel Transaction.'); $order->setStatus("canceled"); $order->save();
user avatar
4 votes
Accepted

Magento 2 REST API checkout payment gateway redirect

The fact that this endpoint defines result of the call as single int instead of at least object with order id and extension attribute is awful and probably won't change. We will see what the Magento ...
user avatar
  • 5,738
4 votes

Unable to communicate with the PayPal gateway

To solve this issue, you can follow these instructions as below: 1. Disable SSL verification. You go to the Magento backend, then choose rSystem-> Configuration-> Payment Methods and find PayPal ...
user avatar
  • 434
4 votes
Accepted

How to display instructions for custom payment method

It was solved by following these instructions: https://mage2.pro/t/630 and https://mage2.pro/tags/checkout-config-provider
user avatar
  • 589
4 votes

How to convert a quote to order

I'm going to try to make it simple and understandable. So to convert a quote to an order, you need to use the \Magento\Quote\Api\CartManagementInterface interface. Use dependency injection in your ...
user avatar
4 votes

Magento 2.1.1 An error occured on the server please try again at checkout

To know the exact reason why it is happening so, please open below file: vendor/magento/module-checkout/Model/PaymentInformationManagement.php than comment out the try, catch and put code to place ...
user avatar
4 votes

custom place order redirect with ORDERID

In your payment method renderer you can overwrite the afterPlaceOrder function, which gets called directly after successfully placing the order. Basically you should be able to get away with the ...
user avatar
  • 151
4 votes

MAGENTO 2 REST API Checkout payment using credit card

Please try the below code. "paymentMethod": { "method": "custom_pay", "additional_information": { "cc_cid": "000", "cc_type": "VI", "cc_exp_year": "2017", "...
user avatar
  • 1,038

Only top scored, non community-wiki answers of a minimum length are eligible