def create(institution_id:,
               initial_products:,
               webhook: nil,
               options: nil)

      options_payload = {}
      options_payload[:webhook] = webhook unless webhook.nil?
      options_payload = options_payload.merge(options) unless options.nil?

      post_with_public_key 'sandbox/public_token/create',
                           SandboxCreateResponse,
                           institution_id: institution_id,
                           initial_products: initial_products,
                           options: options_payload
    end
def create(institution_id:,
               initial_products:,
               webhook: nil,
               options: nil)

      options_payload = {}
      options_payload[:webhook] = webhook unless webhook.nil?
      options_payload = options_payload.merge(options) unless options.nil?

      post_with_public_key 'sandbox/public_token/create',
                           SandboxCreateResponse,
                           institution_id: institution_id,
                           initial_products: initial_products,
                           options: options_payload
    end
Public: Creates a public token for sandbox testing.

 Does a POST /sandbox/public_token/create call which can be used
 to generate a public_token given an institution and list of
 products.

 institution_id   - Specific institution id to generate token for.
 initial_products - Products for which generated token is valid for.
 webhook          - webhook to associate with the item (optional).
 options          - Additional options to merge into API request.

 Returns a SandboxCreateResponse object with a public token and item id.