You will not need to purchase the source code in order to write custom payment processor. As long as you have a license, or the edition containing the ecommerce module, you will be able to customize it in every direction you'd like to.
Let me know if you have any further questions.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items