I am new to bitcoin technology, I want to build Altcoin payment button with 2 bitcoin addresses,
If you meant about cross-chain and then the altcoin must be bridged and it's not worth with the fees that you must pay it to the network except you're using the wrapped version of bitcoin and this may possible.
first is my site address where I will receive a small commission fee, second is my site seller address. When a customer pay, bitcoins will be send to both addresses, is that possible? Thanks
have you ever heard this site before?
https://multisender.app/ Basically, you're building a multi sender app for yourself. You must use token sender code as a way to make it happen but i guess you must also combining it with the various code. Remember that when your customer was paying altcoin and you want it to be converted into bitcoin and it will be sent to your addresses. that means if you must pay so many fees. The only possible thing to build this on the one chain transaction.