简体   繁体   中英

Chargify XML for Custom Field Wordpress

I am using chargify plugin. I want added a custom field in chargify account want to save data using XML.

Presently XML is like which is used to send data to chrgify:-

<?xml version="1.0" encoding="UTF-8"?>
        <subscription>
            <product_id>' . $_POST["submit"] . '</product_id>
            <customer_attributes>
            <first_name>'.$_POST["chargifySignupFirst"].'</first_name>
            <last_name>'.$_POST["chargifySignupLast"].'</last_name>
            <email>'.$_POST["chargifySignupEmail"].'</email>
        </subscription>

Please let me know how to add custom field in this xml so that it automatically get saved in chargify.

Thanks in advance.

This is the format for custom fields in XML:

<subscription>
  <product_handle>monthly-plan</product_handle>
  [...]
  <metafields>
    <color>blue</color>
    <size>large</size>
  </metafields>
</subscription>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM