What’s the difference between payment links and buttons?
Payment links collect payments by sharing a URL with customers. Best for accepting in-person or contactless payments without building a website. Payment buttons collect payments directly from your website by adding button code to your page’s HTML. Best for selling a specific product or service with a direct payment option on your website.Do payment links and buttons support a manually added locale?
Yes. By default, payment links and buttons use the customer’s browser settings to determine the language and locale. You can override the locale for payment links and button code by appendinglocale.x and country.x as query parameters. Any custom text you enter during configuration does not get translated.
See the JavaScript SDK script configuration for supported locale codes.
Example payment link:https://www.paypal.com/ncp/payment/F3YMU2ZGT49XX?locale.x=ja_JP&country.x=JP
Example script tag:
Can I use webhooks with payment links and buttons?
Yes. To enable webhooks:- Sign in to the Developer Dashboard with your merchant account.
- Switch to Live.
- Select Apps and Credentials.
- Scroll down and select Manage webhooks.
- Add your webhook callback URL and choose the events you want to receive, such as checkout and payment events.
Can I hide labels for the Add to Cart button?
Yes. You can hide all text and labels around the button to fit your site’s visual design. This does not change how PayPal processes the transaction, which still uses the hosted button ID configuration. If you hide labels, make sure your button type does not require customer input, such as changing quantity. Example CSS to hide surrounding fields (replace<hostedButtonID> with your actual ID):
Where can I test my payment links and buttons?
You can test payment links and buttons in the sandbox at:https://www.sandbox.paypal.com/us/home.
How do I test Venmo in the sandbox?
Pay with Venmo is not currently available in the sandbox. To test Venmo, you must test in the live environment.Do payment links and buttons support IPN (Instant Payment Notification)?
Yes. Payment links and buttons support IPN. To open IPN settings:- Go to your account settings.
- Select Notifications to see a list of alerts.
- Select Update for Instant payment notifications to open your IPN settings.
- Enter your Notification URL and select Receive IPN messages (Enabled).
- Select Save.
When a customer returns to my site, what purchase information does PayPal send?
Payment links and buttons support Payment Data Transfer (PDT) variables. You receive PDT data when you turn on Auto Return in your payment links and buttons configuration. PDT lets PayPal send transaction details to your return URL after checkout.Can I override payment links and buttons to use my account shipping settings?
No. Payment links and buttons do not honor the bulk shipping settings override in your account shipping preferences. The shipping option in your account profile does not apply to payment links or buttons.I updated the product details. Do I need to update the button code?
Usually no. The button uses configuration stored on PayPal servers. After you save your changes in your PayPal account, you do not need to update the button code on your site. Exception: If you change the product’s currency code, you must replace the existing button code with the updated code.Why is there a client ID in the code?
The client ID identifies your PayPal account in the integration. Do not edit or remove it. Use it exactly as provided in the button code.Can I hide labels generated by the payment links and button code?
Yes. You can hide specific text and labels around the button. This does not change how PayPal processes the transaction, which still uses your configured hosted button ID. Only hide labels when your button type does not require customer input. If you hide fields that collect required data, such as quantity or item selection, the transaction can fail. Example: Hide the price label for a specific hosted button (replace<HostedButton_ID> with your actual ID):