Paypal php passing handling fee parameter - paypal

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&

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.

Paypal button return URL with variables

I have added a variable to my PayPal button and it is passing it to PayPal but I have forgotten what to put into the "Add advanced variables" under step 3 of the button creation. I had this entered in the page before but when I had to change the button the return URL and all variables were removed. I do not remember where I found the information prior. An example of the return URL should look like http://example.com/ThanksForYourOrder.cfm?CustomerID=1234
The CustommerID number is sent as a button form field.
You stick it on the URL itself. The only button field you can pass apart from Paypal's define fields is custom.

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

Generating a dynamic Buy Now button

I am currently speccing out a custom auction plugin for WordPress. One thing I would like to do for each item is to generate a dynamic Buy Now link that will redirect to a PayPal screen with the item name and final price.
From what I can see, the only way to generate one of these buttons is to go to the form that generates the buttons for you. Is there a js file that I can use to generate these buttons from a Wordpress admin area? If so, can someone please provide a link so that I can begin reading up on the documentation?
Thank you
There are several examples of how to create a "pay now" button on stackoverflow (with simple HTML form). I would rather not use the "insecure" forms.
For including it in Wordpress you need to create a PHP Script (Plugin) that creates you the button, either with a library or "by hand".
The second thing I would recommend is to give PayPal an URL they should call after a payment status change (IPN). Some libraries (as the one above) can help you with that.

Paypal subscription button - specify amount in form?

I've set up a subscription button using the guide here, however, it makes you select the price during the set up process.
Is there anyway I can define this value in the form, as the subscriptions I want to use will vary quite a lot depending on other factors.
Any advice appreciated.
Thanks
If you're going to create buttons through your PayPal account you can't modify the HTML code to make the amount value (a3) be a text field. You'll need to create a custom button or an unhosted button so have the full HTML code and can change the "hidden" field to a "text" field.
When you're creating a new button through your account there is an option in Step 2: Track inventory, profit & loss you'll need to uncheck called "Save button at PayPal". After that you'll need to click the "Remove code protection" link to get the full HTML code you can modify however you want.