If you can get the international OFO app, it allows foreign credit cards of course. I set up my CSP for it while in China.
Even better, there are some problems with the international app in China -- in four months of being in China, riding OFO daily, sometimes for as long as an hour, I was never once charged. I'm not sure if it was a promo code I had once loaded for a free couple RMB to each ride or an incompatibility to understand I had rented a bike, but it was a nice surprise.
I did actually contact OFO support about it and what I thought was a related matter, and they advised that the international app has issues in mainland China.