Make paypal api mode configurable