Okay
  Public Ticket #2603978
Data Not Going into Stripe from Booking Form
Closed

Comments

  • Jo McKenzie started the conversation

    At the moment, when information is pulled across from the Booking Form on our WP website (using Amelia Events / Stripe integration) into Stripe, NULL information (ie: name, email etc) is coming across. 

    How can we fix the integration so that it can provide the customer name or email as description instead of that "null" value so we can display it Stripe and know who has paid for our classes.

  • [deleted] replied

    Hello Jo McKenzie, 

    There isn't a possibility of creating customers automatically in Stripe from Amelia with the current integration, unfortunately. Data from Amelia to Stripe can be sent, as metadata or as a description, but customers can't be created in Stripe automatically with this. 


    To achieve sending data as description or metadata, you need to edit one table in your database. Please access your database, find and open the wp_options table (it can have another prefix rather than wp_) and find the option name amelia_settings there. You need to edit it. You will see a setting payments there and stripe in it. You need to set the description parameter enabled to true for Stripe there and also if you want metadata to be sent you need to set the metaData parameter enabled to true as well. Like here : 

    "description":{"enabled":true,"appointment":"%customer_full_name% has booked %service_name% at %appointment_date_time%","event":"%customer_full_name% has booked %event_name% at %event_start_date_time%"},"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%"}}

    Then you can copy/paste any placeholder to the appointment and event parameters that you want to be sent to Stripe from Amelia (the placeholders that you can find in Amelia -> Notifications). We provided some placeholders as an example in the above JSON. 



  • Jo McKenzie replied

    Thank you Marija - I have tried this however it is not working - what is the correct code for the persons name to be pulled across? I am using %customer_first_name% underneath meta description and ensuring it is set to true as well as trying it on description also.

  • Jo McKenzie replied

    Sorry it should read %customer_full_name% (but the other one isn't working either!).

  • [deleted] replied

    You are welcome, Jo.

    The placeholders available in Amelia for the customers' names are

    %customer_first_name%

    %customer_last_name%

    %customer_full_name%


    But could you please tell me - only this placeholders doesn't work / isn't sent? Or none of the placeholders are sent?


    Please note - you won't see this information as the customers' name in Stripe , like I mentioned before, there isn't a possibility to create customers from Amelia in Stripe automatically. 

    These information will be sent as description to Stripe for the payment, or as metadata, you won't see this as customer's name in Stripe.