As part of an incentive package to persuade Costa Rica to shift its diplomatic recognition from Taiwan to the People 's Republic of China last year , China used the muscle of its enormous foreign exchange reserves , agreeing to buy $ 300 million of Costa Rican bonds .