Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎May-09-2019
Country: United States
Type: Business
MikeKrzyzaniak
MikeKrzyzaniak Contributor
Contributor
4
Posts
0
Kudos
0
Solutions
Organized
Your PayPal Anniversary
Ice Breaker
The Return
Active
View all
Latest Contributions by MikeKrzyzaniak
  • Topics MikeKrzyzaniak has Participated In
  • Latest Contributions by MikeKrzyzaniak

How can I use the API to find out how much I as a ...

by MikeKrzyzaniak Contributor in REST APIs
‎Mar-02-2021 04:37 AM
‎Mar-02-2021 04:37 AM
How can I use the paypal API to find out how much I as a seller paid for a shipping label for a given order?   When customers check out on my site, shipping cost is bundeled in to the price. The customers pay with the paypal smart buttons on my site but shipping is not itemized and nothing pertaining to shipping is handled by paypal at that time, customers just pay the lump sum total. Later, after they have paid, I visit the order on paypal using a web browser, and I click on the "ship" link to purchase a shipping label. After having purchased it, I can look on the web page for that order and see the amount I actually paid for the label, in a table with fields labeled "Total Shipping Cost", "Total Postage Value", etc. My question is: how can I access these same fields using the API instead of navigating there with a web browser?   I saw this article which looks relevant: https://www.paypal.com/us/smarthelp/article/how-do-i-use-the-paypal-api-to-determine-shipping-charges-for-a-transaction-ts1019   but when I use the "get transactions details" API (as described below), using the transaction ID from the order: https://developer.paypal.com/docs/checkout/reference/server-integration/get-transaction/   none of the relevant fields are returned, for example there is no field called "grossAmount" or "TaxAmount" in the returned data structure. The only amounts in the response are 1) the lump sum that the customer originally paid, 2) the paypal transaction fee, and 3) the difference between those. So how do I find how much I paid for the corresponding shipping label after having purchased it?   ... View more

Re: no_shipping option in new Smart Buttons API

by MikeKrzyzaniak Contributor in Sandbox Environment
‎Apr-15-2020 03:15 PM
‎Apr-15-2020 03:15 PM
Thanks to the moderatos for their prompt responses. For posterity I want to say that I sell physical goods and collect shipping addresses directly on my site, and then pass that information along to PayPal to complete the payment. I later manually purchase the shipping label on PayPal. In my case, the original answer ("shipping_preference":"NO_SHIPPING") behaves exactly as I desire (does not re-prompt the user for their address). I have never tried to sell non-physical goods, but conceptually it seems like the PayPal API should handle that separately so that vendors do not need to manually mark these goods as shipped. If somebody knows how to do that, this might be a good place to post it, although I personally do not need an answer to this. ... View more

Re: Paypal smart payments - PATCH

by MikeKrzyzaniak Contributor in PayPal Reporting
‎May-29-2019 10:09 AM
‎May-29-2019 10:09 AM
I have the exact same problem. When I calculate a new shipping address and consequently a new total, PayPal always displays the *previous* total, corresponding to the previous shipping address. For the first address entered, i.e. when the user first logs in, the total is displayed without any shipping charges, although the onShippingChange handler was called and I do patch the correct shipping charge to the order. When the user completes the purchase, the transaction is for the correct amount for the *current* shipping address, which is not the amount that is displayed to the user immediately prior to checking out. Any solution would be helpful.   ... View more

no_shipping option in new Smart Buttons API

by MikeKrzyzaniak Contributor in Sandbox Environment
‎May-09-2019 10:43 AM
‎May-09-2019 10:43 AM
I'm integrating the new Smart Buttons into my website. Using the older (prior to Feb 2019) API, I could specify a no_shipping option, so that the user would not be prompted for their address on PayPal pages, as in the following snippet:   paypal.Button.render({   payment: function (data, actions) {     return actions.payment.create({     experience: {        input_fields: {no_shipping: 1}     }});},}, '#paypal-button');   The new API evidently uses actions.order.create() instead of actions.payment.create(), and specifying experience: {input_fields: {no_shipping: 1}}} there doesn't seem to have any effect.  So how do I hide the shipping address on paypal pages during checkout? ... View more
Labels:
  • Labels:
  • API
  • Express Checkout
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros