Forums
Home / Plugin: Direct Stripe / Email fields
(@funsail)
7 years, 9 months ago
How can you include the product info in emails?
(@nahuelmahe)
Hello @funsail,
Thank you for using Direct Stripe.
You can use the filter hooks :
‘direct_stripe_success_user_email_content’ ‘direct_stripe_error_user_email_content’ ‘direct_stripe_success_admin_email_content’ ‘direct_stripe_success_user_email_content’
Here are the variables you can retrieve : 1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
Best regards
So I need to do this in code, I can’t enter these into the plugin email fields?
I guess you need to retrieve per button information so that’s not possible in the general option right now.
Best regards,
Yes, because the email needs to be useful telling what they bought and how much it’ll show on their credit card
7 years, 8 months ago
I guess can I ask you to add in new version, in wp-admin/admin.php?page=direct_stripe&tab=emails
If you can add variables to that field it would be great.
Or it could be added in the stripe button shortcode. Either way is great.