Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #3037648
Stripe receipts
Closed

Comments

  • Isaac LeMass started the conversation

    Hi,

    I have stripe as the payment method for my Amelia plugin.
    Stripe is not sending receipts from payment as I believe it is not receiving the customer email information from amelia. How can I resolve this?

    Cheers,

    Isaac

  • Isaac LeMass replied

    Hi,

    I have found a reply on a similar thread here: https://tmsplugins.ticksy.com//ticket/2802048/

    I don't have much experience with code - is this a possible solution to my problem?

    Cheers,

    Isaac

  •  1,693
    Miloš replied



    Hi, Isaac

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    That was good thinking, I can see you have found a great example of this point covered by my senior colleague, Aleksandar.

    9651621776.png

    Basically, Amelia itself doesn't handle the payments but we have integration with several payment systems just to process the payment.

    What you can do to, is to use this metaData description for Stripe, in Amelia Payments settings,

    you can set various placeholders, same as it goes with the notifications in Amelia;

    I just gave a brief example on that screenshot, for example you can set appointment price, customer's full name, and so on.

    This should work, please try and let me know how it goes.


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Isaac LeMass replied

    Hi Milos,

    Thank you for your advice. I do have the meta-data set up to transfer from Amelia to the description in Stripe. But what my problem is that the meta data is only transfered to the description section in stripe it doesn't create the customer details on the stripe end (stripe doesn't receive the client's email details) for stripe to send the receipt to the client. So currently I have to manually send all the receipts from stripe for every booking. 

    I have attached a screen grab for clarity. The meta data is transferred to the client description in stripe (circled in blue), but crucially it is not added to the clients details in stripe (circled in green), and so stripe is unable to send them a receipt.

    Do we have any workaround for this?

    Cheers,

    Isaac

    Attached files:  5C9BBD71-EF84-4DD1-88DA-434AC337CEF9.jpeg

  •  1,693
    Miloš replied

    Hi, Isaac

    Now i can see what you mean, thank you for these details.

    I will have to check if we have a workaround for this.

    As soon as i can confirm this with our senior Team, i will come back to you. Thank you for your patience.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,693
    Miloš replied

    Hi, Isaac

    Sorry that it took me so long. 

    We have found a workaround for this. Please try these steps:

    Find and edit this PHP file with any text/code editor, located at:

     ../wp-content/plugins/ameliabooking/src/Infrastructure/Services/Payment/

    StripeService.php

    There, around line 52 add this code:

    if (isset($data['metaData']['email'])) {   
     $stripeData['receipt_email'] = $data['metaData']['email'];
    }
    

    Like this:

    8633930031.png

    I don't know if it's going to work, though, if there already isn't a customer with this email registered in Stripe.

    -

    Let me know how it goes, and if you need further assistance. Thank you

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  4
    DesignBurst replied

    Hello Just want to check if this process works as I didn't realise receipts were not sending!

  •  1,693
    Miloš replied

    Hi, DesignBurst

    This is a bit of an improvised workaround that we came up with some time ago.

    We have not tested it yet to the full extent, it is still in a testing phase, but it should work.

    We are not sure about situations if there already isn't a customer with this email registered in Stripe.

    If you try, please let us know how it goes on your installation.

    Our developers are doing their best to improve this and come up with a better solution, as soon as possible.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    richard_oven replied

    Just confirming that the solution works.
    You guys should add that 3 lines of code to the next update.

    To anyone who reads this reply:
    Make sure, that you add to the MetaData the field: 'email' and not 'customer_email' or anything else - like so:

    Name: >>> Value:
    email   >>> %customer_email%

  •  1,693
    Miloš replied

    Hi, richard_oven

    My sincere apologies for replying so late to this.

    1. Thank you for the confirmation and for the added note about making sure to set the correct "email" field in the MetaData, we will note that for other users. 


    2. About adding these lines as part of the plugin,

    we will pass this as an improvement suggestion for our management and developers,

    it has to go through testing to make sure that it does not affect anything else in the plugin for other users that use other payment methods,

    but we will do our best to implement the solution in one of the future updates.

    We can't guarantee an exact ETA, though.

    You can certainly follow our changeLog page if you'd like, where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Carrie Bruno replied

    Hello,

    We inserted the code as described which does send the info to stripe but it doesnt populate the customer field, only the description.  How do we get Stripe to pick up the metadata and populate the customer field so it can see the clients email and sent the receipt automatically?

  •  1,693
    Miloš replied

    Hi, Carrie

    Did you try the modification that richard_oven suggested on the comment?

    If you already tried that, and our workaround suggestion,

    i can ask our 2nd level Team to check if we have any updated workaround that you could try.

    Thank you

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Carrie Bruno replied

    We did- and we got it to work- just a note here for anyone else doing this that the meta tag need to be "email" not "Email" or it will not work.

    However, we are struggling because there is no integration with Amelia with stripe for taxes and we charge tax on our services. Are you guys looking at upgrading that? Have you heard of any work arounds for the tax field to show on checkout using Stripe with Amelia? Because it is not a good customer experience to see the total without tax at checkout, then receive a receipt from Stripe with a higher amount. It is also hard to make our prices inclusive of tax because the tax rate changes depending on where the client lives. That is why a stripe/amelia tax integration is imperative.

  •  1
    Isaac replied

    Hi,

    I really appreciate the additional input on this. I never could make the change myself.

    Could someone help me get to the page where I can edit this code - I don't have any coding experience, but I think I could figure it out if I could get to the place where I can see / edit the code. 

    If I copy this "wp-content/plugins/ameliabooking/src/Infrastructure/Services/Payment/" into my URL where I think it should go I end up with a 404 error.

    Thanks for the help!

    Isaac

  •  1,693
    Miloš replied

    Hi, Carrie and Isaac.

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    @Carrie :

    - Thank you for pointing that out. We will make note of this, and we will do our best to modify the workaround,

    and to make improvements as soon as possible.  We can't promise an ETA , though.

    2. In regards to taxes in Amelia,

    our developers will start working to add a "taxes" feature in Amelia soon,

    but i can't confirm exactly what this functionality will be and if it will be perfectly compatible with the payment integrations, such as Stripe.

    I think it should be, but i have to wait for their development progress and we will see how it turns out.

    If you wish to affect the development speed, you can search and upvote this feature for taxes.

    Please feel free to search through our feature suggestion page

     to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.

    You can certainly follow our changeLog page if you'd like, where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    -

    I will elaborate a bit more in general on how payment integrations currently work with Amelia.

    Amelia itself doesn't handle the payments, but we have integration with several payment systems such as: PayPal, Mollie, Stripe and WooCommerce.

     
    Adding taxes at the moment is only possible to do with WooCommerce products for different services.

     By default, all services are connected to one WooCommerce product, but if you create multiple products you will be able to choose a product that will be connected to each service.
    If you wish to try adding taxes with WooComerce,

    once you enable WooCommerce as a payment method, go to the Services page, 

    open one of the services and you will see a Settings tab. 

    When you choose this tab you will see the option “Select WooCommerce product” where you can choose a product that will be connected to this service.
    This way, you will be able to set different taxes and other WooCommerce options for each product and each service in Amelia.

    Or you can just write the price with tax included and insert (Tax incl.) On behalf of the service.

    -


    @Isaac :

    This PHP file can not be opened through your browser like that.

    In order to get to the location of the PHP file,  

    you will have to either get to the file via an FTP client and ask your hosting for FTP credentials( Such as FileZilla or any other FTP client),

    or you can access it through your Hosting Panel, then find their "File Manager" tool, in order to see the plugin files.

    This PHP file is located in your WordPress folder on the hosting server, then in this path:


     ../wp-content/plugins/ameliabooking/src/Infrastructure/Services/Payment/StripeService.php


    When you find the file, edit it with any text/code Editor, 

    There, around line 52 add this code:

    if (isset($data['metaData']['email'])) {  
      $stripeData['receipt_email'] = $data['metaData']['email'];
    }
    

    Like this:

    8633930031.png

    Just please make note of what Carrie pointed out, the meta tag needs to be "email" not "Email" or it will not work.

    Let us know how it goes.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  3
    DantianHealth replied

    The function to send stripe receipts should be coded in, possibly with an option in settings. This is a core requirement (legal in some places) and asking users to access php files is fraught with issues especially if they make a mistake or their changes get lost in a plugin update

  •  1,693
    Miloš replied

    Hi DantianHealth,

    Amelia itself does not handle any online payments and thus is not able to send a payment receipt from Stripe.

    The only payment method that Amelia is handling is the "ON-SITE" method, where the user needs to go in and edit the Payment to set it as paid.

    -

    For any online payments,

    Amelia has the integration to just send the booking data to a payment processor,

    then your chosen payment gateway takes over the payment process,

    and then, in this case, Stripe, is the one that sends a receipt since it is doing the payment process.

    I can see what you mean, though, we will pass this feedback to our management,

    and they will do their best to make a task for our developers to make improvements for our Stripe integration as soon as possible.

    I can't say an ETA on it, though.

    If you have an idea what kind of improvements you would like to see,

    Please feel free to search through our feature suggestion page

     to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.

    You can certainly follow our changeLog page if you'd like, where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  3
    DantianHealth replied

    hi Milos

    This feature is built in to your competitor bookly. Shouldn’t be that hard to simply change the way info is sent to stripe

  •  1,693
    Miloš replied

    Hi DantianHealth,

    firstly my apology for the delayed response time.

    -

    I understand that implementing an improvement like this might seem easy from your end,

    but in practice, our developers will first need to change the logic behind our Stripe Integration,

    then our QA Team also needs to conduct a lot of testing to ensure that adding this metaData improvement will not have a negative impact/ or a bug to any other Amelia functionalities,

    before it gets added to the Plugin's Core.

    We are not able to comment about any competitor Plugins, as they have a completely different code, etc.

    I passed this feedback and an improvement suggestion to our management;

    they will coordinate with the developers to create a task for this improvement, as you described;

    but i can't promise a realistic ETA when it will be added.

    Our Planning Team is doing their best to manage task priorities, we take into consideration all our user requests.

    You can certainly follow our changeLog page if you'd like, where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    Thank you again for this suggestion and feedback.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  2
    NLP from scratch replied

    Hello, is this on the roadmap to be rolled into a future update? This is critical for the Stripe integration.

  •  1,693
    Miloš replied

    Hello NLP from scratch,

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    We have this planned, but at this moment we can't say an exact ETA when our developers will start working on it,

    our Planning Team is doing their best to manage priorities of each user request according to how many users request it , and how difficult it is to implement,

    we will certainly do our best to add this as soon as possible.

    If you wish to affect the development speed, you can upvote this feature suggestion on this page :

    https://features.wpamelia.com/1129

    You can certainly follow our changeLog page if you'd like, where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Barbara Freudenschuss replied

    Update - problem solved! It looked odd in the Stripe Test mode, however in live mode it looks correct and receipts are being sent!


    Hi everyone, can somebody help me with this solution? I am struggling to set it up. I really need this to work, otherwise I won't be able to use Amelia! I have absolutely no coding experience and I don`t know wether it did sg. wrong in the PHP file or whether it is the meta data that is not correct.

    Thats what the code looks like now. Milos advised to add it somewhere around line 52, I added it in line 60. Is that an issue?

    5208707998.png

    In the Meta Data I added it in this way, but I am not sure if that is what Richard ment below:

    3980812236.png

    Thanks in advance, I would really appreciate your support on that!

    Barbara

  •  1,693
    Miloš replied

    Hi Barbara,

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    If i understood, you have succeeded in this workaround in the end?

    If that is the case, that is great to hear.

    Could you share what you did with us - if it is any different step or detail from the previous workarounds we had?

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Barbara Freudenschuss replied

    Hi Milos,

    yes indeed it worked - I did what I posted below and it worked (see Screenshots).

    A few things to mention:

    - I was not sure whether it plays a role in what line exactly one adds the code. I worked where I added it (see Screenshot) but maybe you can advise on that for future users.

    - be aware that in test mode Stripe does not send receipts by default. Also, in test mode it always look like Stripe does not recognize the customer's e-mail adress, but once you switch in live mode it is gonna work :)

    - I stumbled over another ticket (Nothing here (ticksy.com)) that states that one needs to change the code so that Amelia actually sends the Meta-Data to Stripe. I don't know whether this is acutally necessary but I did it.


    Best,

    Barbara

  •  1,693
    Miloš replied

    Hi Barbara,

    Thank you very much for sharing these details and pointers for us.

    We passed all of it to our developers, and we will do our best to make built-in improvements;

    or at least to try to create a workaround that could be as easy as possible for our users.


    Thanks again.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables