Skip to main content

Merchant Help

 

Affirm Merchant Help

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.

platform_type:
Name of the platform. Ex: "platform_type": "Magento".
platform_version:
Version number of the platform: Ex: "platform_version": "2.2.3".
platform_affirm:
Affirm extension version for the platform. Ex: "platform_affirm": "Affirm_3.3.4".
 

affirm.checkout({
    "merchant": {
        .....
      },
      .....
"metadata": {
      "platform_type": "<Channel Name>",
      "platform_version": "<Channel Version>",
      "platform_affirm": "<Channel Extension Version>",
    }
  });