public ProcessPaymentResult ProcessPayment(ProcessPaymentRequest processPaymentRequest)
{
    if (!processPaymentRequest.CustomValues.TryGetValue("MobileNumber", out var mobileNumber))
        throw new NopException("throw exception or handle it in some way");