You can use DigitalRiver.js with Elements to create custom payment flows that power your checkout experience. The DigitalRiver.js library allows you to capture sensitive customer data in a PCI-compliant manner, which is then returned to your service for interaction with the cart in the Commerce API.