29
votes
Accepted
How to enable error and exception logging in Magento2?
Go inside root pub/errors folder,
Just copy local.xml.sample to local.xml
Also you can enable display_errors from app/bootstrap.php file. At line no. 11 remove # from the start of the line.
Now the ...
16
votes
No 'online refund' in Magento2?
There are two ways to do this:
1 - Partial Refund in Braintree
Login in to the braintreepayments website
Do a transaction search and find the transaction
Click the transaction ID to open
Press ...
11
votes
Accepted
Insert image at the side of payment label on checkout
There are two ways to do this. Both require some work on your theme/template.
This is the quick & dirty way and works great if you want to have your image(s) BEFORE the Payment Method name:
...
10
votes
Accepted
displaying certain payment methods for customer groups
you can do this using magento event observer,create an event on payment_method_is_active and depednds on customer group disable and enable payment method:
check this link:
Implementing payment method ...
10
votes
Accepted
magento 2 - No Payment Methods
Same issue for me so i have Create checkout_index_index XML file and put to below location theme/Magento_Checkout/layout/override/base/checkout_index_index.xml
and Put Below Content in your XML file.
...
9
votes
Accepted
How to Add a Payment Method Filter Field to Order Collection
You need to append the sales_flat_order_payment table to collection:
$collection = Mage::getModel('sales/order')->getCollection()
->join(
array('payment' => 'sales/order_payment')...
9
votes
after run bin/magento setup:upgrade got the error
Deleting var/generation, var/cache and var/di solved it for me.
8
votes
Accepted
Magento 2.1 Payment Method
initialize: Instantiate state and set it to state object. Method that will be executed instead of authorize or capture if flag isInitializeNeeded set to true.
validate: Validate payment method ...
8
votes
New order status staying "pending" instead of processing in Magento 2
We can assign the New Order Status. I will give some basic info:
Login to Magento Admin > STORES > Configuration > SALES > Payment Methods > Choose the Payment, you will see the config for the New ...
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 ...
6
votes
Accepted
Custom payment method like purchase order
have a look at https://github.com/luemic/Magento-Custom-PurchaseOrder which adds a second purchase order payment method. In fact most of the configration is copied from the original purchase method. ...
6
votes
How to get SID in magento
You can get the session ID with the below code:
$session = Mage::getSingleton('core/session');
$SID = $session->getEncryptedSessionId(); //current session id
You can easily get session-id from ...
6
votes
Payment module redirect to payment website url in magento2
To create payment module i used below payment module creator:
http://cedcommerce.com/magento-2-payment-module-creator
Then, for redirection, below is code replaced in
app\code\YOUR_NAME_SPACE\...
6
votes
Find Magento 2 API Username to use in Paypal
You'll go into the Profile of the account and request the API Signature that you'll copy and paste into Magento 2.
From your PayPal business steps:
Tools > All Tools > API Credentials, you'll ...
6
votes
Magento2: How to add a payment method to admin create order?
At first, your payment method should be available for usage in Admin panel and you need to specify can_use_internal property in your payment method YourCustomPayment/etc/config.xml file:
<payment&...
6
votes
Shipping Address Missing on Payment Page Refresh
Core file path: vendor/magento/module-checkout/view/frontend/web/js/checkout-data.js
Overwrite To: app/design/frontend/VendorName/ThemeName/Magento_Checkout/web/js/checkout-data.js
Copy below code ...
6
votes
Accepted
What is the purpose of the public_hash in Magento 2 payment vault?
The public_hash is used to reference the card from untrusted sources (like on checkout). It gives each card a unique non-sequential identifier that can't be readily guessed, to help curb any possible ...
6
votes
Magento cannot override Mage_Payment_Model_Method_Cc.php file
Explanation is easy here.
There is a class Mage_Payment_Model_Method_Cc which has a lot of methods. The other class Mage_Payment_Model_Method_Ccsave is extended from it. It has few protected ...
5
votes
Placing and order via API and payment processing
The full workflow should be like this:
Create a shopping cart ('cart.create')
Set the customer/guest to the shopping cart ('cart_customer.set')
Set customer addresses, for example guest's addresses ('...
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
5
votes
Accepted
Payment method - Zero Subtotal Checkout - hide all others
Do this using event observer.....create an event on payment_method_is_active and depends on grandtoatal group disable and enable payment method:
See there.Implementing payment method per currency
...
5
votes
Accepted
refund customer's money through magento site [credit memo ]
From the invoice you want to Refund, click the Credit Memo button.
Specify the Qty to Refund and then click the Update Qty's button.
Create credit memo
You should then see the refund button.
5
votes
Accepted
Payment methods "Wrong content type" after upgrade Magento from 1.6 to 1.9.1.1
As you may have noticed in the given source code, the exception is thrown because null is not an allowed value for $contentType. $contentType is read from the system configuration:
$contentType = $...
5
votes
Magento 2.1 Payment Method
It's as deprecated approach to extend \Magento\Payment\Model\Method\AbstractMethod, instead, you should use Magento payment gateway.
You can find the step-by-step guide how to implement payment ...
5
votes
Accepted
Magento cannot override Mage_Payment_Model_Method_Cc.php file
I tried lot of ways finally i got the solution.
config.xml
<?xml version="1.0"?>
<config>
<modules>
<Naveed_Abbas>
<version>0.1.0</version>
...
5
votes
Accepted
Magento 2 + Reason behind deprecation of payment method class
Magento provides new way for payment integrations - Magento Payment Provider Gateway.
The \Magento\Payment\Model\Method\AbstractMethod is too complicated for customization, requires using inheritance ...
5
votes
Accepted
Get payment method
Try this code:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$order = $objectManager->create('\Magento\Sales\Model\Order')->load($orderId[0]);
$payment = $order->...
5
votes
How to override js functions which is inside the return in magento 2(mixins)
app/code/SR/Stackexchange/view/frontend/requirejs-config.js
var config = {
config: {
mixins: {
'Magento_Checkout/js/model/payment-service': {
'SR_Stackexchange/...
4
votes
checkout in display currency
Paypal does not support INR.
You can take a look at the supported paypal currencies in Mage_Paypal_Model_Config::$_supportedCurrencyCodes. To save you the trouble of looking here it is:
protected $...
4
votes
checkout in display currency
I hope this will help you,
Add this in “models” section of your module config.xml
<paypal>
<rewrite>
<standard>Yourpackage_Yourmodule_Model_Standard</standard>
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
payment × 696magento2 × 249
payment-methods × 152
checkout × 117
magento-1.9 × 97
payment-gateway × 96
paypal × 75
orders × 63
authorize.net × 38
magento-2.1 × 30
module × 28
onepage-checkout × 27
magento-1.7 × 21
magento-1.8 × 21
invoice × 19
magento-1 × 17
api × 16
paypal-express × 16
magento2.3 × 15
order-status × 15
cart × 13
event-observer × 13
error × 13
quote × 13
custom × 12