How to use Commerce Amazon Fulfillment 7.x-1.x

To use Commerce Amazon Fulfillment, navigate to administration > commerce > configuration > shipping > amazon-fulfillment. There you will be prompted to fill in some basic information concerning your Amazon seller account. Once you have entered your credentials, you will be able to edit your shipping options. These shipping options relate to settings in Amazon Fulfillment CreateFulfillmentOrder.

From there, you can create products. All products will have a checkbox for "fulfilled by Amazon." All items with this value will be sent to Amazon on checkout, with the corresponding values set in administration.

You can alter how this module works outside of the administrative settings by using hook_commerce_amazon_fulfillment_shipping_alter($shipping_mapping). Here is an example of what the code would look like:

hook_commerce_amazon_fulfillment_shipping_alter($shipping_mapping){
  $shipping_mapping = array(
    'drupal_machine_name' => 'amazon_value',
    'expedited' => 'expedited',
    'priority' => 'priority',
  );
}

You must call this function in a custom module to use shipping mapping.