Skip to main content

All Questions

Filter by
Sorted by
Tagged with
13 votes
1 answer
3k views

Magento2: What's the best way to add custom payment method field?

I've set up a new payment method in Magento 2 with a custom payment method field (like "po_number" from magento/offline-payment-methods). And front end is working perfectly fine (field showing up, ...
therouv's user avatar
  • 331
7 votes
5 answers
15k views

displaying certain payment methods for customer groups

I am very new to the magento checkout process so forgive my lack of knowledge. Is there a way of displaying certain payment options for certain customer groups. For example i have changed the "...
Adam Allen's user avatar
  • 2,205
6 votes
2 answers
4k views

Magento 2.1 Payment Method

Considering a custom Payment Method class extending \Magento\Payment\Model\Method\AbstractMethod: Would somebody kindly explain what do the methods below do? initialize($paymentAction, $stateObject) ...
Pro-Magento's user avatar
6 votes
1 answer
3k views

Magento 2 + Reason behind deprecation of payment method class

In payment methods \Magento\Payment\Model\Method\AbstractMethod \Magento\Payment\Model\Method\Cc both are deprecated. In stead to extends both method now as per this link , we should ...
Mage2 Developer's user avatar
6 votes
2 answers
13k views

Add additional information to payment method

I'm trying to add additional data to the checkmo payment method. I then need this additional data appear at the order Endpoint. I plan on using this as a way of passing over a sort code / account ...
BigDaddyL's user avatar
  • 522
6 votes
1 answer
2k views

What is the preferred base class for Payment method

I will write a payment module and read some tutorials. All tutorials are using \Magento\Payment\Model\Method\Cc or \Magento\Payment\Model\Method\AbstractMethod to extend from, but both are deprecated. ...
bitkorn's user avatar
  • 175
6 votes
3 answers
7k views

Magento 2 custom payment method not showing in front end

I have tried to create new payment method in magento2, when i tried to configure it is coming in the backend, but not in the front end. If anyone fixed this issue please let me know the fixes, i am ...
Naveenbos's user avatar
  • 1,226
5 votes
3 answers
360 views

PxFusion DPS Payment Express

I am looking for Px Fusion extensions for my online store. any suggestions ?
user7870's user avatar
5 votes
4 answers
8k views

Is it possible to create an iframe-based payment method in Magento?

To give a context for my question, we are actually migrating to Magento from Interspire Shopping Cart. In Interspire, the payment form would be displayed after everything else, especially the Order ...
Obay's user avatar
  • 357
5 votes
3 answers
10k views

Magento2: How to add a payment method to admin create order?

I have an invoice payment method. The customer's call center should be able to create orders from backend and add this specific payment method to the order. The payment method is a gateway, which then ...
Tero Lahtinen's user avatar
5 votes
1 answer
3k views

Payment method - Zero Subtotal Checkout - hide all others

At the moment I have Paypal and Zero Subtotal Checkout payment methods enabled. If the basket is €0 then Zero Subtotal Checkout will display however Paypal is displayed underneath it. Whats the best ...
Goose84's user avatar
  • 2,641
5 votes
1 answer
1k views

Which built-in payment methods in Magento (or extensions) offer an iframe option? [duplicate]

We want to create a new payment method in Magento which uses an iframe to display our payment gateway's credit card form (we are not PCI-compliant). We've found this so far to be very challenging. We ...
Obay's user avatar
  • 357
5 votes
1 answer
610 views

How to modify Bank Transfer Payment OR Cash On Delivery Payment methods? Looking to rename one of those and add extra fields

Magento 1.9.4 Porto theme We urgently need to modify either the 'Bank Transfer Payment' payment method or the 'Cash On Delivery' payment method. What we are after is: label the existing form text ...
Allysin's user avatar
  • 280
5 votes
1 answer
500 views

Magento 2 : Manually send current currency to a payment method in a multi currency store

I have to manually send price of the products in cart, tax, total etc. in current currency to a payment method as by default magento sends it in base currency of the store. Can anyone point me in ...
Vivek Kumar's user avatar
  • 5,740
4 votes
6 answers
18k views

Magento Fatal error: Call to a member function getMethodInstance() on a non-object in app/code/core/Mage/Payment/Model/Observer.php on line 46

I’m trying onepage checkout. When I'm exiting 2co payment page by clicking on Place order button I'm navigating back to my site and the URL looks like this. https://www.example.com/index.php/checkout/...
Imran Hossain's user avatar
4 votes
3 answers
10k views

In the checkout page, how to default select and load a payment method?

In the final magento checkout page, at the payment method part, I have two options, SagePay and PayPal. Neither are selected, but I would like the SagePay option preselected by default, and therefore ...
Ash's user avatar
  • 41
4 votes
1 answer
4k views

Multiple Checkout Payment Gateway Redirection Issue

I am using the payment gateway InnovatePayments which is working fine for single checkout & redirected me to Payment Gateway page after clicking place order button where i entered credit card info ...
user3409089's user avatar
4 votes
1 answer
5k views

Get the next order increment id during checkout?

I am developing a custom payment gateway. It uses OrderIncrementID to identify which Order was the payment made for. I have every functionality running after the Order has been placed, i.e. after ...
Yeo's user avatar
  • 345
4 votes
6 answers
676 views

How to start accepting Bitcoin as a payment method on Magento?

We would like to expand our payment options and start offering Bitcoin payments for our products. Given the price of Bitcoin is very volatile (it goes UP and DOWN a lot) - how would we determine how ...
Allysin's user avatar
  • 280
4 votes
2 answers
530 views

Magento2 API to access internal payment method

I am working on creating a way to make an order via the magento api and wondering if it is possible to access internal payment methods (payment methods that are only enabled for the admin panel) via ...
Jayreis's user avatar
  • 725
4 votes
2 answers
3k views

How to send post data with redirect from magento 2 for a payment gateway?

we use magento2/app/code/Paymentgateway/Example/Controller/Standard/Redirect.php public function execute() { $order = $this->getOrder(); if ($order->getBillingAddress()) { $...
Ayush Mittal's user avatar
3 votes
2 answers
468 views

Which Payment Methods meets payment security standard?

Which Payment methods fulfill payment security standard(PCI Compliance)? Authorize.net Authorize.net Direct Post Saved CC Paypal Express Checkout Paypal Payment Gateway Paypal All in one Ogone Sage ...
Abhishek Gupta's user avatar
3 votes
1 answer
2k views

Magento 2 : How to detect if payment has failed

How can I check a payment process failed while ordering in Magento 2? I want to set some logic if payment failed during order placing. Payment can be done from any payment method like PayPal, debit ...
Shubhajay Das's user avatar
3 votes
1 answer
1k views

Magento 2 Invoice Capture Options

In Magento 1, you can enable capture options for an invoice by adding protected $_canCapture = true; to app\code\core\Mage\Payment\Model\Method\METHODNAME.php In Magento 2, how can this be done? I'...
Ryan's user avatar
  • 33
3 votes
1 answer
1k views

Want to change Payment method title in order detail page

I want to change my new added payment method title in the order details page. There is a dynamic type which I get via my payment gateway. It has to be like {my payment method title} /{that variable}. ...
Subhan Sunny's user avatar
3 votes
2 answers
811 views

Credit Card Charged Twice After Place Order in Magento 2.2.9

We are using the CardConnect Payment Gateway for our site. Before a few days ago we face a credit card charged two times for some orders and Magento Shows only 1 order and 1 Invoice and 1 transaction. ...
Harshil Parekh's user avatar
3 votes
1 answer
3k views

Magento 2.2.6 Exception message: A wrong PayPal Express Checkout Token is specified

I am getting this issue for a few customers in the production site. while trying place order in one step checkout with PayPal express checkout, it's redirecting to the cart page with the exception ...
Amzath Khan's user avatar
3 votes
0 answers
349 views

How to take payment on edited PayPal order

Is it possible to re-authorise/re-take payment on the new order that is created when you 'Edit' an existing order? I'm running Magento 1.8.1.0 for a client's website that is currently in development. ...
thatweblook's user avatar
2 votes
1 answer
3k views

What is the purpose of the public_hash in Magento 2 payment vault?

The new integrated Vault interface for Magento 2 payment methods includes a public_hash that is generated from the payment method information: $hashKey = $paymentToken->getGatewayToken(); ...
Scott Buchanan's user avatar
2 votes
3 answers
3k views

How to create payment gateway module that will redirect to external page

how can i create a payment gateway module that will redirect the customer to an external url when the customer places an order? I have tried using ultimate module creator but my module isn't appearing ...
Nii Stark Osae's user avatar
2 votes
1 answer
639 views

Magento 2 get customer by payment id

How can I get the object of customer if I have the payment id? $payment_id = 3; Table Location is sales_order_payment. $payment_id is entity_id
Amit Singh's user avatar
  • 1,785
2 votes
1 answer
2k views

How to create a Magento 2.1 custom payment to save credit card information

I am unable to use Authorize.net or PayPal in the country my store is working. I'm migrating from magento 1.9 to magento 2.1; and I manually process all my payments from credit cards using the Save CC ...
Sergio Cadavid's user avatar
2 votes
1 answer
4k views

Reload Onepage Checkout to specific step

I have a payment module for Magento that redirects to an external site to collect the payment info, then upon success it redirects back to the Magento one page checkout page. Right now when it ...
Chris M's user avatar
  • 43
2 votes
1 answer
562 views

How to change the total price at checkout onepage in controller?

I added a discount function at payment step, and there is a button to call Ajax to controller. The button is in the payment step. The problem is how to change the total price after I click the ...
AndroidBeginner's user avatar
2 votes
1 answer
2k views

How can I redirect user to the payment gateway after placing order in magento 2?

I am creating my own payment method which should redirect user to the payment gateway of a bank after placing order. How can I do it?
P S's user avatar
  • 1,983
2 votes
1 answer
466 views

Custom payment method frontend requires JavaScript to be activated only after it is selected

Background story I am building a new payment method. I'm in the process of adding the frontend in the checkout page. The payment method require javascript. So I have managed to add a script to the ...
Yeo's user avatar
  • 345
2 votes
1 answer
630 views

PayPal, Authorize.net, and other payment gateways and PSPs

I have a generic question concerning processing payments with Magento. First of all, what is the difference between the PayPal Website Payment Standard option available in Europe and the PayPal ...
John Sonderson's user avatar
2 votes
0 answers
417 views

Unexpected developer error, please try again later Google pay

Im facing this issue when I try to use google pay. Note: It's working in sandbox environment.
Muhammad Hamza's user avatar
2 votes
0 answers
34 views

Allow Another Free Payment Method Magento 2.1.0 [closed]

I create a payment module for Magento 2.1.0. My module works very well. But I need to give another free paid method with the same module... This is possible? Thanks for all.
Rodrigo dos Santos Cruz's user avatar
2 votes
0 answers
13 views

Why did the Payment section stopped working after switching primary domain? And - does Form Key Validation On Checkout need to be enabled?

Porto theme I switched the primary domain in our Magento 1.9.4 store and then the Payment section of the checkout stopped working altogether - you could select a Payment method by placing a tick in ...
Allysin's user avatar
  • 280
2 votes
0 answers
3k views

Magento 2 : Add Custom Fee to Paypal Express Checkout

I develop custom extension which add custom fee to order based on payment method selection. Every thing working fine except "Paypal Express Checkout". When I select this method, it added custom fee ...
Dhiren Vasoya's user avatar
2 votes
0 answers
188 views

M2 Add fields to custom payment method [ship to multiple address]

I have created a custom payment method, which is working fine, but when i select ship to different address, than payment method was not appearing. I added "allow_multiple_address" to 1. Now payment ...
Surjan Raghuwanshi's user avatar
2 votes
1 answer
145 views

Integrating VisaCheckout in Magento 2.1

Hello i'm newbie with Magento 2, I'm integrating visa-checkout button in checkout of magento Image is printed but i getting an error about Refused to load the image because it violates the following ...
mty95's user avatar
  • 21
2 votes
0 answers
327 views

Magento 2 add custom value for Order Description in paypal?

The above image from Paypal. I change the value for Description or Order Description but I don't know where magento passing the information to the paypal popup. I want to change the value for Order ...
user avatar
2 votes
1 answer
413 views

Magento 2 payment module "this.item" is undefined

I tried to create my own custom payment module in Magento2.1.1 CE, and there is one thing I just can't figure out. In many of the out-of-box modules, there is a property "this.item", for example ...
Tienyi Chi's user avatar
2 votes
1 answer
405 views

Magento 2.1: Custom Payment Gateway Method-Renderer JS File Is Ignored

I'm working on implementing a payment gateway using the sample code from Magento github on my Magento 2.1 site. For some reason, Magento does not seems to use the new functions I added to ..payment/...
frostshoxx's user avatar
2 votes
0 answers
583 views

after upgrade from 1.7 to 1.9.1 order not saving after sagepay payments plus payment complete message not showing

I have upgraded magento from 1.7 to 1.9.1. I have fixed paypal and it is all working and payment saving. But Sagepay payments have 2 issues: 1) After payment has made it through Sagepay it redirects ...
ahmed's user avatar
  • 43
1 vote
1 answer
4k views

magento 2 - No Payment Methods

I am working with magento 2, I created an e-commerce site and everything works fine, but suddenly the payment page displays No Payment Methods. I cleared the browser cache, but the problem persists. ...
Sabri Tahri's user avatar
1 vote
1 answer
4k views

How to get SID in magento

I'm trying to add online payment in my magento store and the bank that I work with suggest for making tests that I send to them some variables for testing the security (between them the SID). So my ...
Fares Omrani's user avatar
1 vote
1 answer
4k views

Get payment method

I'm trying to get the payment method in checkout_onepage_controller_success_action observer. I have tried: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $...
P S's user avatar
  • 1,983