• Resolved mohobook

    (@mohobook)


    In test mode, all Customers are identified by the store’s email address versus the customer’s email, or the customer’s name, can’t say if this will happen in live mode because we need to resolve this first

    When you go into the record, the Owner section displays the customer’s name and email but the Customer section still displays the store’s email

    Aside from that, this is an amazing payment plugin, thank you

    UPDATE

    While testing, I am logged in as an administrator which is also the same email as the store email, could this somehow be the problem?

    Although, I’m not sure why because during checkout as a test user I use a different email address, nevertheless, is it possible the plugin defaults to the WordPress user and not the actual user?

    • This topic was modified 3 months, 2 weeks ago by mohobook. Reason: More information
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @mohobook

    Thank you for contacting Payment Plugins. The Stripe plugin is designed to user the customer’s email, not the store email. The reason you’re seeing the store email is because the user you’re testing with has the same email address as the store email.

    When making the customer creation API call to Stripe, the plugin uses the WC_Customer::get_email() method. That method returns the user’s email address associated with their account, not the billing email used on the checkout page. WooCommerce makes a distinction between the billing email value and the email associated with the user. Those two values can be the same or different.

    For example, let’s say it’s a customers first time purchasing from your site and they opt to create an account during checkout. WooCommerce will use the billing email provided on the checkout page. In that case the WC_Customer::get_email() will match the billing email since that is what WooCommerce uses to create the account.

    Now say that same customer comes back a week later to make a purchase but they use a different billing email value. WooCommerce will use that billing email for the order details but the customer’s account email will remain what was used when they created their account.

    Kind Regards

    Thread Starter mohobook

    (@mohobook)

    Thank you for confirming this, and thank you again for this plugin

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.