All Questions
58 questions
0
votes
0
answers
41
views
alternative way of exit and die in magento
i want to stop further executions of magento but without using exit, this is a PHP CS issue, how can i? i used return but execution did not stop,
public function aroundOnThreeDSRequired(
\P3\...
0
votes
1
answer
145
views
Magento 2 how to update requirejs-config.js
We are using the Magento 2.3.5 version we want to update the version from 3.79.1 to 3.97.0 in requirejs-config.js
file-path - vendor/gene/module-braintree/view/base/requirejs-config.js
when we are ...
0
votes
1
answer
137
views
Payment webhooks stops working in Magento Cloud 2 with PWA frontend
In Magento Cloud 2.4.4 with Luma I had NO problems with the Conekta Webhooks
Conekta is a payment processing platform, like PayPal or Stripe
After the frontend changed to PWA, the payment webhooks ...
0
votes
1
answer
697
views
Custom payment method not visible in checkout
I have a magento 2.4.5-p1 installed. I am trying to install a custom payment module, but I don't see it in checkout. (I updated the namespaces to make it work in admin). I went through StackOverflow ...
0
votes
1
answer
64
views
module custom payment doesnt show at checkout
I have Magento 2.4.3 with theme wolf and many stores and countries, well I tried to up a new module payment method (pagoEfectivo), I took the folder, put at app/code, I executed bin/magento set:up, ...
0
votes
1
answer
220
views
Magento2 how to get quote order id
in my authorization request builder as apart of my payment method facade, I need to fetch the quote or order id to pass it to the client....
class AuthorizationRequestBuilder implements ...
1
vote
0
answers
159
views
Warning: Array to string conversion in /app/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php while saving the payment information
Warning: Array to string conversion in /app/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php while saving the payment information on rest/default/V1/carts/mine/payment-information in checkout page ...
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.
1
vote
0
answers
302
views
Magento 2 graphql integration with Hosted(Redirect) Payment method
i want to create graphql api for custom Hosted(Redirect) payment method.
can anyone elaborate step how can i create that for payment method?
1
vote
1
answer
2k
views
Magento2 how to get payment method using jquery or knockout
Magento 2 how to get payment method using jquery or knockout when customer click on payment method,need to get selected payment method code.
requirejs-config.js
var config = {
map: {
'*': {...
0
votes
0
answers
278
views
How to we can set discount for specific Payment Card like Visa Or Master in Magento 2.4.0?
I want add discount on specific Card or bank account ( If customer have Visa Card or have account in ABC Bank ) Then 25% off on all products when he'll place order.
How to we can do this ? There is ...
0
votes
1
answer
521
views
Magento 2.2 credit card details hacked
For a few days we have detected that in our Magento 2.2 the user is asked for their credit card details when it is something that was not done since the user is directly redirected to pay on the bank ...
0
votes
1
answer
27
views
Where to find magento2-sample repository with payment module and many others as examples?
There is no sample-module-payment-gateway to start by developing a custom payment gateway. And, in fact, there is no more magento2-samples repository, which made the developers life much easier.
Where ...
0
votes
0
answers
86
views
Magento2.3 Payment Gateway Extension
I tried to develop a simple payment gateway extension for Magento 2.3.x and above. It required to support bank hosted method only. When user click place order leads to bank payment page and the card ...
1
vote
0
answers
194
views
Magento 2 Paytrace Echeck Payment method
I have create module for Caputure payment by Bank Cheque, I have created following mode and extends \Magento\Payment\Model\Method\AbstractMethod class.
In checkout page i have created two field ...
0
votes
3
answers
1k
views
Magento 2 : Get payment additional data from frontend to backend always empty
Im creating a custom payment method on an Magento 2 website using SecurePay API.
SecurePay Iframe Tokenise credit card and I will need that token to process the payment.
So I follow many tutorials to ...
1
vote
1
answer
513
views
Magento 2: How to integrate Pay Pal Payment gateway with Magento 2 REST API for Android?
We are trying to build the generic android mobile app which can be used by magento 2 owners using REST API for Magento2 and have implemented the basic features for the app.
As most of the people ...
1
vote
2
answers
573
views
Magento 2 - How to restrict a selected payment method?
How to restrict a selected payment method in Magento 2?
Event: etc\events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0
answers
312
views
How to remove payment method step in checkout process in Magento 2.3.2
I have magento Open Source 2.3.2 setup my client don't want any payment method now. How to remove payment method step in checkout process. I just want to place order without selection payment method.
...
0
votes
1
answer
433
views
How to override Magento\Cybersource\Gateway\Request\SilentOrder\TransactionDataBuilder class?
I want to pass the custom REFERENCE_NUMBER to CyberSource So, I tried to override the class Magento\Cybersource\Gateway\Request\SilentOrder\TransactionDataBuilder using below steps
etc/di.xml
<...
0
votes
0
answers
489
views
How to create offline payment method like PurchaseOrder, COD etc
Trying to create a simple offline payment method in Magento 2.3. After Magento 2.2, the abstract class
\Magento\Payment\Model\Method\AbstractMethod
has been deprecated, so I can't use it. Also, I ...
1
vote
0
answers
167
views
Magento 2 refund button unable to click while using other payment method
I've been finding a solution to this problem for a long time.
I developed a payment method for Magento 2.2.9 and testing for the execution.
The problem comes when I try to refund the order by ...
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.
0
votes
0
answers
83
views
Getting Error on Checkout in any payment method
Preconditions
Magento ver. 2.2.4
Developer mode/Production Mode
Expected result
User Should be able to pay after buying any product.
Actual result
On Any Payment Method i will get the following ...
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 ...
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 ...
1
vote
2
answers
844
views
Magento 2 How to hide payment method when the Basket Subtotal is ZERO
I want to hide the payment methods when the basket subtotal is "0"
i have few products in my website where price is "0" but the customer has to pay for shipping incase if they want to purchase the ...
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 ...
1
vote
1
answer
768
views
Magento 2 getting wrong order and order id when select ship to multiple address
I am using Magento 2.2.4, my problem is:
I am using 2 events one page checkout success and sales order place after.
In my controller I am getting order id from customer session using
$...
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 ...
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 ...
1
vote
0
answers
320
views
Found 3 elements with non-unique id #agreement#1 Magento 2.1
I have total 3 payment method integrated on default Magento checkout.
please check screenshot and let me know solution
https://www.screencast.com/t/V0ASd12aGKnP
Advance Thanks
0
votes
1
answer
973
views
Magento 2 : How Can I get All Active Offline Payment Methods?
I want to get the list of all active offline payment methods like cashondelivery, checkmo, banktransfer etc.
0
votes
1
answer
37
views
Magento 2 disabling payment module bug
This is my observer. Works fine but condition if(h = 20) not working
<?php
namespace send\sms\Observer;
use \Magento\Framework\Event\Observer;
use Magento\...
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 ...
0
votes
1
answer
2k
views
How to get payment method selected magento 2
I need to get the 'Cash On Delivery' payment method if it is selected.
I Cannot get the payment method name. The
getMethodInstance() and getTitle() are not working. See the code I used below:
<?...
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 ...
1
vote
0
answers
193
views
How to display payment methods on a phtml Magento 2?
How can I display all available payment methods on a phtml via layout file?
I have created a custom payment page and I want to show all available payments method there so user can select one and when ...
1
vote
1
answer
371
views
Problem with payment module
I am creating a custom payment module for magento 2 and I am experiencing the following problem. I get an error on the method=renderer.js on the getCode function saying 'Cannot read property '[name of ...
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
0
votes
2
answers
738
views
Is there any Payment Gateway that support Alipay and WeChat pay in a single integration in Magento2?
I'm not sure whether this question can be asked here but I don't see any other options. So please excuse me.
I've been searching for quite sometime to find a suitable Payment gateway that supports ...
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();
...
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)
...
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 ...
0
votes
1
answer
597
views
decrypt($this->getCcNumberEnc())?
Magento 2.0.10
PHP 5.6.27
I created a Credit Card payment module (Save) which works very well.
The encryption feature seems to work correctly.
$info->encrypt($data->getDataByPath('...
1
vote
0
answers
331
views
Magento 2: When Paypal Express will generate Payment Id?
I'm processing payment through Paypal Express Checkout.
Order is already processed in Backend & will store Transaction Id in database. But i need to process some Orders using API.
To do that i'm ...
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'...
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())
{
$...
1
vote
2
answers
2k
views
Payment method does not exist
I am developing a custom payment module and I am trying to show it on the product checkout page, without success. The thing is that not a single payment method (even the default ones) is shown at the ...
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/...