Credit card repayment function, you can only use the money in the bank card account to repay the credit card you want.
If you want to borrow a credit card to pay it back, there are some operating methods, but they are a bit cumbersome. But your method won't work.
You can register two Alipay accounts. Charge the credit card money to your account, then pay it to another Alipay account, and then withdraw the money from this account to one of your bank cards. Then exchange the money in this card for a credit card.