Deployment
Deployment
When you are ready to deploy your PayPal integration to a production environment, you will need to do the following:
Switch to the Live Environment: Make sure the
environmentparameter in your initialization configuration is set to'production'or omitted (as it defaults to production).const params = {
// ...
environment: 'production',
// ...
};Use Live Credentials: Ensure you are using your live
terminalIdand a valid, non-expiredtokenobtained from your server for the live environment.Enable PayPal in the Merchant Portal: Confirm that PayPal is enabled for your live terminal in the DNA Payments Merchant Portal.
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>