Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Denford 132 posts 323 karma points
    Oct 03, 2020 @ 14:12
    Denford
    0

    Send Cart orderlines to Stripe

    We are using the Stripe payment provider as the shops payment option and we can finalise and process live orders fine, but there are a couple of things i wanted to check and see if its possible or how to set these.

    • We would like to send all the order details i.e. order lines especially to stripe so we can see whats been paid for, even temporary as part of the payment description
    • We have the option in the setting "sendstripereceipt" and want this receipt to include the order details above so the customer has got that in their email
    • When the order is placed/created in the Umbraco backend (or when we recieve the confirmation back from stripe) we would like to send an admin email with the order details to let admin users know about the new order.
  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 05, 2020 @ 08:30
    Matt Brailsford
    100

    Hi Denford,

    Regards points 1 and 2 unfortunately that's now how the Stripe provider is setup to work. Instead it just sends a single summary line to cover the cost of the whole order.

    Whilst it's possible that the individual orders lines could be sent, generally Tea Commerce's discount engine is more flexible than payment gateways tend to allow you to represent in their payment models. As we need to make our payment providers work for many different scenarios which could include complex discounting rules, we have to go for a simpler single line summary instead.

    If you wish to show the individual order lines, then you would need to take the source code of the Stripe provider available here https://github.com/TeaCommerce/Tea-Commerce-Payment-Providers/tree/master/Source/TeaCommerce.PaymentProviders.Stripe and extend it to do so via a custom build.

    Regarding your last question, this is possible in a couple of ways. You could add the admin email as a bcc to the default Order Confirmation email in the email template settings. Or, you could create a new email template and then write some code to hook into the Order Finalized event (https://docs.teacommerce.net/3.4.0/api/events/#net-events) and then use the EmailTemplateService.Instance to send your email template to the admin.

    Hope this helps

    Matt

  • Denford 132 posts 323 karma points
    Oct 08, 2020 @ 21:45
    Denford
    0

    Hi Matt,

    Thanks for that i will have a look into the source code for the stripe payment provider and see where i can adjust that as i remember a while ago i did the same in a custom payment system think it was on creating the payment intent.

    As for the email, we i have gone with just creating and sending another custom email with the order details both to admin users and also to the customer.

Please Sign in or register to post replies

Write your reply to:

Draft