• Resolved fullerdigital

    (@fullerdigital)


    Hi there,

    Just wondering if there’s a fix that’s either in the pipeline or that we can apply, to get the order number and customer email carried along to Stripe?

    When someone completes an order using this plugin, everything gets processed nicely – however when you look at the payments in Stripe, the description column is missing the order number, and the customer column is missing the customer’s email address.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bfl

    (@bfl)

    Hey @fullerdigital. The Order Number and Customer Email fields are only sent to Stripe as Metadata (look for the “Metadata” section on the Payment page in your Stripe dashboard). The CUSTOMER column is only used when a customer has been saved in Stripe, which this plugin does not currently support.

    You can customize the description using a code snippet like the following:

    add_filter( 'woo_mp_stripe_charge_request', function ( $request, $order ) {
        $request['description'] = 'Order #' . $order->get_order_number();
    
        return $request;
    }, 10, 2 );
    • This reply was modified 4 years, 2 months ago by bfl.
    • This reply was modified 4 years, 2 months ago by bfl.
    Thread Starter fullerdigital

    (@fullerdigital)

    Thanks for the response @bfl – similarly to your snippet for the description – could we do something like this for the customer email (assuming its part of the request at all)?

    
    add_filter( 'woo_mp_stripe_charge_request', function ( $request, $order ) {
        $request['customer_email'] = $order->get_billing_email();
    
        return $request;
    }, 10, 2 );
    
    Plugin Author bfl

    (@bfl)

    No. Here are the options:

    1. Send the email address as metadata. This is what the plugin currently does.
    2. Send the email address as the receipt_email. This will cause an email to be sent to that address.
    3. Create a Stripe Customer and associate this payment with it. The plugin does not support this feature currently.
    Thread Starter fullerdigital

    (@fullerdigital)

    No worries, thanks for the options @bfl

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Order Number and Customer Email not being sent to Stripe’ is closed to new replies.