Awkward situation…
In this car there is one key and it should open the gas cap. If it does not, it means the gas cap or the key are not original.
Usually a car specialized locksmith can be called to open it.
But I would expect such thing to be done by the seller.