Platform Metadata

The following metadata information should be added to Affirm during checkout initialization for any platform integration. These are a hash of keys to values in addition to other metadata information that should be passed in the checkout object.

AttributeDescriptionExample
platform_typeName of the platform."platform_type": "Magento".
platform_versionVersion number of the platform."platform_version": "2.2.3"
platform_affirmVersion number of the Affirm extension."platform_affirm": "Affirm_1.0"
affirm.checkout({
    "merchant": {
        .....
      },
      .....
"metadata": {
      "platform_type": "<Channel Name>",
      "platform_version": "<Channel Version>",
      "platform_affirm": "<Channel Extension Version>",
    }
  });