paypallogo
Customize Demo 
Sign Up
Prev Next Prev NextStaticSandboxDeveloper View
Developer View
Merchant View

Customize Demo

Country

United States

  • Australia
  • Brazil
  • China
  • Germany
  • Japan
  • Mexico
  • United Kingdom
  • United States
Language

English (US)

  • English (US)
Interested Integrations

PayPal Standard buttons

  • PayPal API integrations
  • PayPal Standard buttons
  • PayPal One Touch Payment
Product Capabilities(No Capabilities Selected )

Select Product(s) in action

  
  
  
  • Sign Up
DesktopMobile Web

beautyMerchant.com

Go to Home
Demo site
Now Accepting PayPal
00
Now Accepting PayPal
  • FRAGRANCE
  • MAKEUP
  • BATH & BODY
  • HAIR CARE

Top Selling Items this Week

  • Vanilla White Amber Perfume

    Vanilla White Amber Perfume

    Go to Next Step
  • Must Perfume

    Must Perfume

  • Vintage Perfume

    Vintage Perfume

  • Rose Perfume

    Rose Perfume

  • Orange Essence Shampoo

    Orange Essence Shampoo

  • Lemon Shampoo & Handwash

    Lemon Shampoo & Handwash

  • Lavender Perfume

    Lavender Perfume

  • Orange Essence Shampoo

    Orange Essence Shampoo

Special Deals

  • Makeup Brushes

    Makeup Brushes

  • Face Powders

    Face Powders

  • Perfume Sets

    Perfume Sets

  • Nail Polishes & Lipsticks

    Nail Polishes & Lipsticks

About Us

  • Company Info & News
  • Careers
  • Investor Relations
  • Corporate Responsibility
  • Affiliates

Ways to Save

  • Weekly Ads
  • Daily Deals
  • Coupons
  • Clearance
  • All the Deals

Customer Service

  • Track an Order
  • Return an Item
  • Shipping Information
  • Contact Us

Payment Options

  • PayPal
© 2023 Merchant.com All Rights Reserved.  
Privacy Policy  Terms & Conditions

The PayPal Demo Portal showcases the customer view of an ideal shopping experience using PayPal on a fictitious shopping site.

It provides not only best-practice recommendations, but also the code to integrate PayPal on each page of your site.

Skip tour

Frequently Asked Questions

Q: What is the PayPal Demo Portal?

A: The PayPal Demo Portal gives you a way to quickly learn how PayPal capabilities work in conjunction with your business. The Demo Portal lets you view the end-to-end user experience for all PayPal products, on a global level. Use the Demo Portal to learn about the PayPal Best Practice standards and see code examples that are in-context with the flows you view. In a nutshell, the Demo Portal can help you accelerate your PayPal product integrations.

Q: Do I need to log in to a PayPal account to access Demo Portal?

A: The Demo Portal is open to everyone and there is no need to create a PayPal account or log in to PayPal to access the portal. In addition, you can view and download the code samples provided by the portal without needing to log in.

Q: Is the Demo Portal hosted on a PayPal website?

A: Yes, the Demo Portal is a PayPal property.

Q: How is the Demo Portal different from the PayPal Developer Portal and the PayPal Sandbox?

A: The Demo Portal is focused on showcasing the end-to-end user experience of our PayPal products. The portal also allows you to download code samples aimed at getting you up and running with the basic functionality of the selected products. The supplied code samples are just fragments and you will need to create Sandbox test accounts on the PayPal Developer Portal in order to run the sample API calls against Sandbox environment. Additional product support, including detailed product documentation, can be found on the Developer Portal.

Q: Where do I go if I have technical questions?

A: Ask our community at our StackOverflow PayPal forum

Q: Where do I go if I want to report a bug or a technical issue?

A: Supply the details you have on the issue to our Technical Support department: https://www.paypal-techsupport.com

Q: Where do I go if I need to get help with my account?

A: Visit PayPal Support
Visit Merchant Services

Credentials

Please select your view

Merchant View

  • Developer View
  • Merchant View
See what your customers will see when you integrate PayPal on your site.See the requests, responses, and API calls made as you browse the demo experience
  • Response from PayPal
  • Formatted Response
  • Next Step

Redirect to
Next
  • Request
  • Get Code
SetExpressCheckout

Request parameters you need to send to PayPal:
Parameters in red are mandatory

GetExpressCheckoutDetails

Request parameters you need to send to PayPal:
Parameters in red are mandatory

DoExpressCheckoutPayment

Request parameters you need to send to PayPal:
Parameters in red are mandatory

DoDirectPayment

Request parameters you need to send to PayPal:
Parameters in red are mandatory

See the complete list of parameters here.

See the complete list of parameters here.
See the complete list of parameters here.
See the complete list of parameters here.
Try the request using curl on your computer


Enable In-Context Checkout

A basic PayPal Checkout integration assumes that you are sending the API calls from your own server using a <form> or <a>. The following integration script with setup must be loaded after the <form> or <a> tags.

<script type="text/javascript"> 
window.paypalCheckoutReady = function () {
paypal.checkout.setup('Your merchant email id', {
container: 'myContainer', //{String|HTMLElement|Array} where you want the PayPal button to reside
environment: 'sandbox' //or 'production' depending on your environment
});
};
</script>
<script src="//www.paypalobjects.com/api/checkout.js" async></script>
You must have Business-Pro enabled for DoDirectPayment API. You can do this by upgrading your Sandbox seller account to Business-Pro.

NOTE: It is a good practice to handle funding source error with error-code 10486. For more information, refer to the 10486 error handling link.


REST API Code Samples
JavaPHP

NVP / SOAP Code Samples (Deprecated)
JavaPHP
REST API Code Samples
JavaPHP

NVP / SOAP Code Samples (Deprecated)
JavaPHP

Buy Now

Add a ‘Buy Now’ button for all the items and let your customers click once and quickly purchase one item at a time.

Create Buy Now Button

Add to Cart

Add an ‘Add to Cart’ button for all the items and allow your customers to choose one or more items for a single checkout.

Create Add to Cart Button
Next
  • Request Parameters
  • Info

Braintree Hosted Fields

Request parameters you need to send:

braintreeGateway.transaction.sale(
{
   amount: '300.00',
   amount: '300.00',
   paymentMethodNonce: nonceFromTheClient,
   options: {
      submitForSettlement: true
}

PayPal Payments with Braintree Direct

Request parameters you need to send:

braintreeGateway.transaction.sale(
{
   amount: '300.00',
   amount: '300.00',
   paymentMethodNonce: nonceFromTheClient,
   options: {
      submitForSettlement: true
}

PayPal Checkout via Braintree SDK

Request parameters you need to send:

braintreeGateway.transaction.sale(
{
   amount: '300.00',
   amount: '300.00',
   paymentMethodNonce: nonceFromTheClient,
   options: {
      submitForSettlement: true
}

Braintree Hosted Fields

Hosted Fields provides you with the ability to customize the look and feel of your web page while ensuring that you are compliant with PCI requirements.


Braintree Hosted Fields
PayPal Payments with Braintree Direct

When eligible, your existing PayPal buttons change to show a new Pay Later button. When customers select Pay Later, they can pay with flexible, buy now, pay later financing offers.


View documentation.
PayPal Checkout via Braintree SDK

PayPal Checkout via Braintree SDK is powered by Braintree, a PayPal service. The integration consists of complementary client and server SDKs, which are easy to integrate.


PayPal Checkout via Braintree SDK Documentation
Call SDK Transaction.Sale
Call SDK Transaction.Sale
Call SDK Transaction.Sale
  • Raw Response
  • Formatted Response
Next

API History

We’ll use cookies to improve and customize your experience if you continue to browse. Is it OK if we also use cookies to show you personalized ads? Learn more and manage your cookies