How to Add jquery on Checkout page in payment method secction - magento2

I want to hide the custom section in payment method is called "Order Insurance" on checkout page as per shipping method. I mean "order insurance" will shown only for paid delivery method in case of "free delivery" it will be hide in Magento2.
Please Let me know how can I do it.

Related

Product attribute on Checkout page summary magento 2

I want to display the product attribute on checkout summary
currently i am using " MageVision_Blog16 " Extension
https://www.magevision.com/blog/post/get-a-product-attribute-in-checkout-summary-magento-2/
Its only showing the product attribute on checkout shipping information page but its not showing on Checkout payment page.. Can you give me an idea on how to display the product attribute on both..??
Please check again the updated post. In payment step the totalData array is set again only with the Magento's default quote total values, so the quoteItemData array has to be used to set the product's manufacturer and display it in checkout order summary in both steps.

"Create Paypal button" interface

When I try to create / modify a "Paypal button", I always arrive on a page that:
Looks the same as 10 years ago
Recommends to use "Internet Explorer 7 (!), Firefox 3 or Safari 4" for best results
In this button creation page, I cannot find how to choose the style among the "Custom payment page styles" created in this page: https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-page-styles. What is this page useful for, then, if we cannot use them when creating a button?
Did I miss a new interface somewhere (URL?) for button creation or is this very old interface still up to date?
The button creation page, which you are seeing is valid and it still appears the same.
However, the customization of the checkout page is no longer available through the Custom Payment pages( This feature is deprecated).
You may still add a logo, but that has to be done through coding. You will need to add the variable "image_url" with the value of the logo URL. For Express Checkout payments, you may use LOGOIMG .
For more details, kindly refer to this link: https://developer.paypal.com/docs/classic/admin/checkout-settings/#customizing-paypal-checkout-pages.

How do I add a discount code to my cart and send it to paypal checkout?

I'm trying to add a discount code field to my website in big cartel. I've set the available discount codes in bigcartel, but no discount field is shown when checking out. This is because I send users to PayPal to checkout. Is there a way to add a field for the discount code in my cart, then send that discount to paypal on checkout?
What I really need is an example of how to make an <input/> for the discount code such that it gets processed on form submission. I'm new to big cartel, and as far as I can tell I don't have the ability to change the code for how the cart form is processed.
I've been digging through bigcartel and PayPal's docs for a while now with no luck, and am hoping someone on here knows the solution, but any help would be appreciated.
You can add a discount field to the Cart page by using discount_code_input:
Enter discount: {{ cart.discount | discount_code_input }}
This is also documented here: https://help.bigcartel.com/developers/themes/#discountcodeinputdiscount-id-classname
Additionally there's a number of different variables used to check whether discounts are enabled, the amount, the code that was entered, etc: https://help.bigcartel.com/developers/themes/#variables-1
And finally, every Big Cartel theme is on GitHub, so you can download the theme code, run it locally with Dugway, and get a better idea of how our themes work. Here's Lunch Break for example: https://github.com/bigcartel-themes/lunch-break/blob/master/source/cart.html

Paypal php passing handling fee parameter

Now I'm addind parameter - handling, but in Paypal page gedding label Shipping and handling , this label is not correct form me bacause I sell inteligence items and there is no shipping.
What parameter is same as handling but have label Handling
I try all items from this official page, but no one is what I need.
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
As far as I know you can't change the name of the parameter corresponding on the checkout page . Instead you use the cart upload button and pass the "handling" as line item so that it will be shown as another item on the checkout page .
Kindly refer the below link :
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/cart_upload/
You can click the below link to see how it will look like :
https://www.paypal.com/cgi-bin/webscr?cmd=_cart&upload=1&business=seller%40dezignerfotos.com&item_name_1=Item+Name+1&amount_1=1.00&item_name_2=Handling&amount_2=2.00&

Using Paypal PDT with other paypal buttons made, don't want to override success url on those?

I have multiple other paypal buy it now buttons created and active on my account.
I have it set up so it has a "success url" and "cancel url" on each.
I am now trying to POST variables back to my website to use for my own purpose.
So I have a Buy it now button on my website that has an event name text field. I am looking for an easy way to use the PDT system so after payment, it will attach some POST variable (like the event name field) so I can use it to populate another form)
The problem that I am having is the PDT requirements say that I need to have auto-return ON, but then all my other buttons that I created are screwed up and return to that other URL and not the "Success URL" that I created in the button??
I know there is a simple solution.. Thanks!!
If you have a "success url" and "cancel url" set up on all buttons, this will override whatever you specify in your Profile.
So you can just enable 'Auto Return' and start using with your new button without any worries, as all existing buttons will still return back to their proper return URL's.