I fully understood what you want.
you want script like paypal so that your partners can just put that script on their site.
But data base will be on your site. So basically your partner will only use that but every thing will be under your control.
I am 10+ years of working experience in Web development (PHP, Mysql, wordpress, AJAX, HTML5, CSS3, javascript, jquery, bootstrap)