I'm using this library to make payment using paypal:
Library: https://github.com/jersonandyworks/Paypal-Library-by-RomyBlack/blob/907e4f16f604fee21395c87b6d08e4b832f1cfd7/Paypal_lib
But i would like to know how can a add the shipping cost to show in paypal.
my link to redirect to paypal like this:
https://www.sandbox.paypal.com/cgi-bin/webscr?business=dodiatheke%40hotmail.com&cmd=_cart&production=0&custom=&invoice=58003497&upload=1¤cy_code=BRL&disp_tot=Y&cpp_header_image=&cpp_cart_border_color=000&no_note=1&return=http%3A%2F%2Fshop41.co%2Fpayments%2Fnotify_payment&cancel_return=http%3A%2F%2Fshop41.co%2F¬ify_url=process_payment.php&rm=2&lc=EN&shipping=&shipping2=&handling=&tax=&discount_amount_cart=&discount_rate_cart=&first_name=&last_name=&address1=&address2=&city=&state=&zip=&email=&night_phone_a=&night_phone_b=&night_phone_c=&item_name_1=250+PARES+DE+TIRAS+PARA+FABRICAR+CHINELOS.&amount_1=197.50&quantity_1=11&item_number_1=3002&item_name_2=CHINELO+ANGEL+PINK&amount_2=14.90&quantity_2=20&item_number_2=20001
but if i put the price in the shipping nothing appears on the paypal.
I dont know how to include the price.
Thanks for the help.
Since it appears that you are using PayPal Standard and not Express Checkout, here is one way you can have PayPal calculate all shipping costs automatically.
This is from the PayPal Documentation:
You can customize your PayPal Payments Standard shipping rates based on currency, region, shipping method, and delivery time. Or you can base your shipping rates on fixed amounts or fixed percentages.
Here's how to calculate shipping costs for purchases made on your website:
Log in to your PayPal account.
Click Profile.
Click My selling tools.
Under "Shipping my items," click Update near "Shipping calculations."
Click Start under "Set Up Domestic Shipping Methods" or "Set Up International Shipping Methods." If you've already set up shipping methods, you can click Add new shipping method or Add another shipping method.
Select the currency and regions, and then click Continue.
Specify your preferences for shipping method, delivery time, and shipping rate, and then click Continue.
Review your selections, and then click Save Shipping Methods.
To enable your shipping calculations, you must click Use settings saved in your PayPal profile within each button you have created. To offer free shipping, select "Use specific amount," and enter 0.00 as the amount. The HTML code in your shopping cart buttons under "Shipping" overrides the shipping methods in your Profile.
If you calculate costs by weight, you must enter the weight of each item within each "Buy Now" or "Add to Cart" buttons you create.
If you need more specific shipping calculation options, go to our developer network at https://developer.paypal.com or contact your developer.
Related
I have setup Paypal button on my website and my client want to block payment for some countries. Is there any option??
I recommend to not try this in code, just log into your PayPal account and do the following. This will set FOR SURE filters for your account.
Login to your Account.
Click on Profile
Click on My Selling Tools
Under Getting paid and managing my risk
Look for Managing risk and fraud
Click on Update
At the bottom, look for Risk Controls
Check the radio button for Country Monitor
Click on Edit
On the Choose your Countries page
Add the countries you don't want to sell to in the My Monitored Countries
Below check the radio button for Decline
Click on Save
Note, you can also control the dollar amount that you're willing to accept.
I am selling just one type of item on a website and I am using the Buy Now button from Paypal .. is there a way to change the postage cost for overseas customers? I have seen in Paypal you can change the postage depending on the value of the sale (for more than one item) but I can't see how to change the postage for overseas? Any help would be very much appreciated. Thank you
Dawnyanne
Within your PayPal account you can update the shipping methods to include international shipping methods. Just choose the option for International Shipping Methods.
From PayPal Documentation:
You can use PayPal to calculate shipping costs automatically on your website.
Here's how to set up shipping profile calculations:
Log in to your PayPal account.
Click the Business profile con beside the "Log out" button and select
Profile and settings.
Click Selling tools.
Click Update beside "Shipping calculations."
Click Start to set up your shipping region.
Set up one or more shipping methods and click Continue.
Enter your shipping information and click Create Another or Continue.
Review your information and click Save Shipping Methods.
Note:
Shipping rates depend on order amount, order weight, or item quantity. You can choose rates based on a fixed amount or a percentage.
You will not be able to use the PayPal Profile Shipping Calculator with Express Checkout and PayPal Payments Pro accounts. This functionality can only be used with PayPal Payments Standard accounts.
If your shipping methods require more customization, you may want to integrate PayPal with a third-party application. Go to our Developer Network at https://developer.paypal.com/ for information on integrating a third-party shopping cart or shipping application.
Note: Customers with a Personal account will need to upgrade to a Business account for this feature.
Setting Up Shipping Methods
I am looking for assistance with multiple buttons on a page, some which have postage and nultiple items, some without or free postage.
At present i have a standard shopping cart option on a page created from the standard create button PayPal page, which provides a space for the buyer to type in their requirements with includes free postage and works fine.
A second shopping cart on the same page offers a similar buyer feature but adds postage, all works fine.
Third, fourth and fifth buying options are single buy now buttons each with added postage.
But the problem for the buyer is that when they a add a single item with postage and a multi-buy shopping cart option, they end up with duplicate postage...
If they buy 2 single items using the buy now buttons + a multi-buy they end up having three duplicate postage costs in their order.
Any suggestions welcomed to avoid duplication of postage costs, thanks.
I'm not sure how you currently have the shipping set up (whether via the buttons themselves or the shipping profile), but this is how I would tackle this:
For the items that are free shipping, within the shipping option in the button itself I would set a shipping cost of 0.00. Then set up the shipping calculations section in Tools or your Profile for your shipping rates for the items that do have shipping costs. In the last step of the shipping calculations creation, you want the box to be checked to use the shipping cost in the transaction instead of your calculator settings and that will allow the buttons you have a shipping cost entered directly into to override the shipping costs you set in the shipping calculator.
If you need any assistance setting up the shipping calculator you may call into PayPal Support and they can assist you.
I've been working on a minimalist e-commerce website where I am trying to leverage Paypal's Add To Cart and View Cart buttons for the financial aspect of this website. However, I found out if you are not a U.S merchant you are restricted on Paypal's shipping calculator by not being able to calculate shipping by weight and region.
I am looking for alternatives to making a full e-commerce site, where the users do not have to register or type in their personal information or charge a fixed shipping rate for products.
I am curious on what everyone thinks regarding the user experience of a user entering their zip/postal code into an input box and being presented with a total price by estimated shipping prices (from UPS' API, Canada Post's API), and calculating taxes by region for each product. Otherwise, offer an option for the base product price plus a warning that the shipping and taxes are pending without specifying their zip/postal codes. If you have any other ideas, I would be glad to read them!
Thanks for your time!
That's what I typically recommend doing...gathering shipping directly from shipping carrier API's and then passing those values into the shopping cart / payment integration accordingly.
Any PayPal integration you choose would allow you to pass those details in be it Payments Standard, Express Checkout, Payments Pro, etc.
I'm passing along variables to a paypal shopping cart(using the api and paypal payment standard). I can pass the shipping cost, but how, or is it possible to describe the shipping method on paypal form? I can't for the life of me find where or how this is done.
Example,
my widget.... $1
shipping and Handling....$12
What I'd like:
my widget.... $1
shipping and Handling....$12
(UPS Ground)
Thanks for any input
Not entirely sure that passing the shipping provider to PayPal is possible. You might be able to pass it as a separate variable or some type of custom variable. If you only have one shipping provider you might be able to do the following
Log into your PayPal account
Go to Profile > My Selling Tools
Underneath Shipping my items click the Update button aligned with 'Shipping Preferences'
Select your default shipping carrier and press Save
You can pass over the shipping description/provider. However the feature only works with Express Checkout and with Website Payments Standard (cart upload method). You would use this when using the Instant Update API. You can find more about this in developers guide, and there is a section here showing what variables you would need to pass over with your cart upload code.