This page is optimized for wider screens.


Integration Builder

Step 1 of 2: Configure your integration
Standard IntegrationJS SDK

Use this interactive Integration Builder tool to generate payment buttons that you can use for your website. This client-side code explores the JavaScript SDK for PayPal's standard checkout integration.

Choose payment methods
PayPal Payment Buttons
Let PayPal intelligently present relevant payment methods to your buyers.
Standalone Payment Buttons
Individually select the payment methods you want to accept.
How does your business handle payments?
Process one-time payments using the JavaScript SDK.
Process payments for fixed amounts at regular intervals using the Catalog Product API, Subscriptions API, and JavaScript SDK.
Choose your button style



<!DOCTYPE html>
    <html lang="en">
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>PayPal Standard Payments Integration | Client Demo</title>

        <div id="paypal-button-container"></div>
        <!-- Sample PayPal credentials (client-id) are included -->
        <script src="" data-sdk-integration-source="integrationbuilder"></script>
          const paypalButtonsComponent = paypal.Buttons({
              // optional styling for buttons
              style: {
                color: "gold",
                shape: "rect",
                layout: "vertical"

              // set up the transaction
              createOrder: (data, actions) => {
                  // pass in any options from the v2 orders create call:
                  const createOrderPayload = {
                      purchase_units: [
                              amount: {
                                  value: "88.44"

                  return actions.order.create(createOrderPayload);

              // finalize the transaction
              onApprove: (data, actions) => {
                  const captureOrderHandler = (details) => {
                      const payerName =;
                      console.log('Transaction completed');

                  return actions.order.capture().then(captureOrderHandler);

              // handle unrecoverable errors
              onError: (err) => {
                  console.error('An error prevented the buyer from checking out with PayPal');

              .catch((err) => {
                  console.error('PayPal Buttons failed to render');