stripe icon indicating copy to clipboard operation
stripe copied to clipboard

Customer Notification Email not sent with checkout tag

Open johnny-gruber opened this issue 2 years ago • 2 comments

Hi There I've just set up a checkout tag and it works like expected, except for the notification emails. They aren't sent to the customer neither the admin and after the checkout I won't be redirected to the correct success page. My code looks as follows:

{% set description = craft.app.request.get('description')  %}
{% set items = [
    {
        "price": getenv('SHIRT_PRODUCT_ID'),
        "description" : description,
        "quantity": 1,
    }
]
%}

{% set checkoutSession = craft.enupalStripe.checkout(items) %}

<a href="{{ checkoutSession.url }}" class="shirt-configurator__button">NEXT</a>

In the settings I've set the email addresses and craft is able to send emails with SMTP. Am I missing something? I receive all the orders in my stripe dashboard and I'm able to sync them.

Additional info

  • Craft version: Craft Solo 4.3.10
  • PHP version: 8.0.26
  • Database driver & version: MySQL 5.7.40
  • Plugin version: 5.1.0
  • Is SCA and Stripe Checkout enabled?: Yes and Yes

johnny-gruber avatar Feb 23 '23 19:02 johnny-gruber