Rules "when an order is paid in full"- tokens are not substituted properly

Created on 19 April 2015, over 10 years ago
Updated 18 August 2025, 18 days ago

I am using both Stripe and PayPal on my site.

I have configured a rule to send me an email "when an order is first paid in full".

The subject of that email includes the following tokens:

[commerce-order:order-id], [commerce-order:mail], [commerce-order:owner:role-names]

order-id is substituted properly, but mail is empty, and owner:role-names shows "anonymous user".

When I visit /admin/commerce/orders/, I see the order, which was placed by the anonymous user, has already been assigned to the account for the email address that placed the order (commerce is configured to automatically assign orders to accounts, and to create accounts for email addresses that do not have them).

So, it seems that with Commerce Stripe, the email is sent before the order has been assigned to the account. This is different than how the Commerce PayPal module handles this situation, because when I send the same e-mail when using the PayPal payment method, all of the tokens are substituted properly.

I am filing this as a support request rather than a bug report because it's not clear to me that both modules should work exactly the same, being different payment methods; however, I would like to know how I can use Rules to send myself an email that contains the email address of the person who made the order using the Stripe payment method.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024