@paypal/smart-payment-buttons-rerelease

Serverside rendered ButtonJS

Usage no npm install needed!

<script type="module">
  import paypalSmartPaymentButtonsRerelease from 'https://cdn.skypack.dev/@paypal/smart-payment-buttons-rerelease';
</script>

README

PayPal Smart Payment Buttons

Smart Payment Buttons application, including:

  • Server-side buttons renderer
  • Client side logic

Please note: this repo is not intended as a public entry point into the smart buttons. Please see:

Development

Running the development server

npm install
npm start

Then load http://localhost/smart/buttons?clientID=alc_client1 in your browser.

Using local paypal-checkout-components

This repo uses the button renderer from github.com/paypal/paypal-checkout-components. To pull in local changes from paypal-checkout-components to this module:

  • Clone and set up the github.com/paypal/paypal-checkout-components repo
  • Run this module with BUTTON_RENDER_DIR=/path/to/paypal-checkout-components npm start
  • Load http://localhost/smart/buttons?clientID=alc_client1 in your browser