- πΊπΈUnited States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.
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.
Closed: outdated
1.0
Code
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.