Quello che vuoi creare sembra un gateway di pagamento tipo PayPal ...