eCart will create all of the necessary code for processing the transaction through PayPal Payments standard or payPal Payments pro for you, you should not need to add any additional; code for processing the transaction.
Yes, you can use the Paypal sand box for testing.