#StackBounty: #payment-methods #tooltip Tooltip for Payment methods in Magento 2

Bounty: 50

I am trying to show the tooltip for Custom payment method, But it’s not working. For this I tried the below code.

html file path (app/code/NStripe/PaymentTerms/view/frontend/web/template/payment/paymentterms.html)

<div class="control _with-tooltip">
<div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}">
     
        <div class="payment-method-title field choice">
            <input type="radio"
                   name="payment[method]"
                   class="radio"
                   data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
            <label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
        </div>
         
    <div class="payment-method-content">

        <!-- ko if: getPayTerms() -->
        <div id="custom_payment_content_section1" data-bind="foreach: PaymentList">
            <p id="custom_payment_content1" data-bind="text: PaymentTerms" style="color:#0092cc;font-weight: bold;" class="custom_payment_content1"></p>
        </div>
        <!-- /ko -->


        <br/>

        <div class="actions-toolbar">
            <div class="primary">

                <button class="action primary checkout"
                        type="submit"
                        data-bind="
                        click: placeOrder,
                        attr: {title: $t('Place Order')},
                        css: {disabled: !isPlaceOrderActionAllowed()},
                        enable: (getCode() == isChecked())
                        "
                        disabled>
                    <span data-bind="i18n: 'Place Order'"></span>
                </button>

            </div>
        </div>
    </div>
</div>
<div id="payment_terms_payment" class="field-tooltip toggle">
      <span id="tooltip-label" class="label">
           <!-- Tooltip-->
        </span>
    <span class="field-tooltip-action action-help"
          data-bind="mageInit: {'dropdown':{'activeClass': '_active'}}"
          data-toggle="dropdown"
          aria-haspopup="true"
          aria-expanded="false">
            </span>
    <div class="field-tooltip-content" data-target="dropdown" aria-hidden="true">
        This is the custom text how looks like in the Payment Terms Payment Method.
    </div>
</div>

But it’s not showing.

enter image description here

Can you please suggest me to show like Email, Phone Number ? mark style.


Get this bounty!!!

#StackBounty: #magento2 #checkout #payment-methods #grand-total #order-totals Coupons are applied but payment decting only one coupon i…

Bounty: 50

I’m using the Multiple coupons for magento2. in this module coupons are applied but amount is decting wrong. if I applied 2 coupons to the product those are applied when I pay the amount only one coupon amount is reduced.

example. product price is €239.96
I applied two coupons each one for € 30.00 total €60.00 reduced and the Grand total is €179.96

when I pay the amount is € 209,96 means only one coupon amount is dected.

below I attached the screenshot please check

enter image description here

in the network tab grand total and base grand total values are different

enter image description here


Get this bounty!!!

#StackBounty: #magento2 #payment-methods #custom-block When select a particular payment method how to add a custom block in order summa…

Bounty: 50

When selecting a particular payment method how to add a custom block in the order summary block in checkout page in Magento 2

I used this extension https://github.com/bragento/magento2-cash-on-delivery-fee
but I got an issue 404 issue /V1/guest-carts/xcx4SQDhPYJDycVn6lRjgsCuJOGBVswj/set-payment-information-and-get-totals
enter image description here


Get this bounty!!!

#StackBounty: #payment-methods #magento2.3.3 #payment-gateway #credit-card #paypal-payflow-pro Magento2.3.3 Payflow Pro CC method not w…

Bounty: 50

I am using magento 2.3.3 and I have enabled default magento Payflow Pro with Express checkout payment method. I have configured all required paypal merchant account details in admin area within payment method settings.

Now, if I try to place order with Express checkout method then it works fine. However, when I try to place order with credit card method then first paypal authorization request fired successfully with 0 amount. But then nothing happens and loader keeps spinning. I have also enabled debug mode and check logs in all log files but nothing relevant error information found.

This is default magento and I believe that there is no problem with paypal merchant account details configured at admin side otherwise Express method won’t work. I have also found this issue created by someone on github magento2 repo at https://github.com/magento/magento2/issues/4408. However, no one had provided any exact solution over there as well.

Does anybody faced this issue in any project? Please help me as I am trying to resolve it since last few days.

Thanks in advance!


Get this bounty!!!

#StackBounty: #magento2 #payment-methods #rest-api #stripe Magento 2: Place order via REST API using Stripe Payment Method

Bounty: 50

I have a situation where I need to create virtual orders programmatically using the Stripe Payment method.

I have no issues creating a virtual order programmatically but I want to use Cryozonic Stripe as the payment method and want to payment charge as well.

I tried using the REST APIs to place an order. All worked fine but the last step of Payment Info & Place Order. Below are the details of my API call. But I don’t think it is the right way of doing it.

/*
    7. Set Payment info & Place Order
*/  

$paymentBody = [
                "paymentMethod" => [
                    "method" => "cryozonic_stripe",
                    "additional_data" => [
                        'cc_stripejs_token' => 'pm_1GLjo4Fl4EumnGYfitaSZ2e2:visa:1111',
                        'cc_save' => true,
                        'extension_attributes' => null,
                        'email' => 'ahsan.horani@gmail.com',
                        "cvv" => "123",
                        "type" => "VI",
                        "exp_year" => "2022",
                        "exp_month" => "12",
                        "number" => "4111111111111111"
                    ]
                ]
            ];

$ch = curl_init("$url/index.php/rest/V1/guest-carts/$cartId/order");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($paymentBody));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . json_decode($token)));

Important: I want to create a charge based on the customer that already exists in Stripe and has saved the payment method (Credit Card). I was able to fetch customer payment ID successfully but have no idea how to create a charge using that customer payment ID from Stripe.

I have referred this to create orders via REST APIs. Need help to get it done in the right way.

P.S. Cryzonic Stripe extension is already installed and configured on checkout


Get this bounty!!!

#StackBounty: #magento2 #checkout #magento2.3 #payment-methods #upgrade Magento 2.3.2 : Paypal Credit method not displaying in checkout

Bounty: 50

I have to upgrade magento2.2.0 to magento2.3.2. in old version PayPal credit payment displaying & working fine but upgrade version 2.3.2 is not displaying in checkout.

shipping step to payment step pass 3 methods but payment step in displaying only two.

Ref link – https://github.com/magento/magento2/issues/22525

enter image description here


Get this bounty!!!

#StackBounty: #magento2 #checkout #magento2.3 #payment-methods #upgrade Magento 2.3.2 Paypal Credit method not displaying in checkout

Bounty: 50

I have to upgrade magento2.2.0 to magento2.3.2. in old version PayPal credit payment displaying & working fine but upgrade version 2.3.2 is not displaying in checkout.

shipping step to payment step pass 3 methods but payment step in displaying only two.

Ref link – https://github.com/magento/magento2/issues/22525

enter image description here


Get this bounty!!!

#StackBounty: #magento2 #checkout #payment-methods Not rendering specific payment method in template

Bounty: 50

I’m looking to stop a specific payment method (check / money order) from displaying on the checkout page. I can’t disable the payment method, as I still need it to be used by the API on another checkout.

Doing some digging I can see this part loops through all the payment methods –

/vendor/magento/module-checkout/view/frontend/web/template/payment-methods/list.html

<each args="data: getRegion($group().displayArea), as: 'method'" render=""/> </div>

I’ve tried to add in some logic of “if paymentMethod code = ‘checkmo’ don’t display” = But I can’t seem to do it this way, it gets rid of displaying any payment methods.

Would this be the best approach to do what I need, or is there another way?


Get this bounty!!!