Okay
  Public Ticket #2566977
Stripe integration - metadata
Closed

Comments

  •  1
    Mark Saunders started the conversation

    I'm receiving payments via Stripe but only have an incomprehensible ID to map the payment to. How can I send over metadata to Stripe to match-up the customer with a specific payment?

  • [deleted] replied

    Hi Mark,

    Thank you for your message.

    By default, no data is forwarded to Stripe, but you can change that.

    You have to go through the database.

    Please be careful when you update the table, because if you delete or add anything else, it can cause the plugin not to work properly.

    When you access your database via PHPMyAdmin (or some other tool), access wp_options table:

    6172199762.png

    It is possible that your prefix is not "wp_", but something else, so if that is the case, please look for "your_prefix_options" table.

    When you access it, you can search through the column "option_name". Search for the term "amelia_settings":

    9596326323.png

    The search will return only one row, and you need to edit it:

    3462547772.png

    In "option_value" column, search for "stripe":

    3739662011.png

    There, you can see "description" and "metaData", and it's currently set to "enabled":false

    If you change that to "enabled":true, you can add notification placeholders for appointments and events. For example:

    "description": {            "enabled": true,            "appointment": "%customer_full_name% has booked %service_name%",            "event": "%customer_full_name% has booked %service_name%"        },"metaData": {            "enabled": true,            "appointment": {                "user":"%customer_full_name%",                "email":"%customer_email%",                "phone":"%customer_phone%"            },            "event": {                "user":"%customer_full_name%",                "email":"%customer_email%",                "phone":"%customer_phone%"            }        }    },

    I hope that helps.


  •  1
    Mark Saunders replied

    Works like a charm! Thanks!!!

  • [deleted] replied

    You are welcome.