• Resolved drewbc

    (@drewbc)


    Hi there! Was just curious if there is a way in the code to add a filter or something to be able to tell it to link the payment on stripe to a certain stripe customer.

    By default when a user creates an account on our system it creates them a customer account on stripe and I would love to be able to link it to their orders if they place an order logged in. Right now we store their customer id from stripe in their user meta.

    Wanted to just check to see if something like this is possible even if I had to develop the code to filter into the plugin.

    • This topic was modified 1 month ago by drewbc.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @drewbc

    Thank you for contacting Payment Plugins. The Stripe plugin automatically includes the customer_id property when creating a payment intent. If a customer is logged in to your site, their payment in Stripe will be associated with their Stripe customer object.

    Kind Regards

    Thread Starter drewbc

    (@drewbc)

    Is there a way to set the Stripe customer id from stripe to the user meta somehow so order by that customer will always be linked to the same customer account on stripe?

    Thread Starter drewbc

    (@drewbc)

    Like do you guys store the customer id gotten from stripe in the user meta on wordpress?

    Plugin Author Clayton R

    (@mrclayton)

    @drewbc yes the Stripe customer ID is stored in the user meta table. The key name is wc_stripe_customer_live.

    Kind Regards

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

You must be logged in to reply to this topic.