Skip to main content

Deployment

Deployment

When you are ready to deploy your PayPal integration to a production environment, you will need to do the following:

  1. Switch to the Live Environment: Make sure the environment parameter in your initialization configuration is set to 'production' or omitted (as it defaults to production).

    const params = {
    // ...
    environment: 'production',
    // ...
    };
  2. Use Live Credentials: Ensure you are using your live terminalId and a valid, non-expired token obtained from your server for the live environment.

  3. Enable PayPal in the Merchant Portal: Confirm that PayPal is enabled for your live terminal in the DNA Payments Merchant Portal.

  4. Update Script Source: Ensure you are using the production URL for the PayPal component script in your HTML.

    <script src='https://pay.dnapayments.com/components/paypal/paypal-component.js'></script>