add allowFundingSources flag to get_gateway_URL
Merge pegler's change