• Hello,

    I want to do this:

    After a person buys a product using the stripe payment link (hosted on stripe.com) his email is picked and used to create an account as “member” on my wordpress website.

    I played around with webhooks also using the help of ChatGBT but it didn’t work.

    I asked stripe for help and they told me to ask WordPress, I googled it and havent found anything useful.

    Sure I can hire a developer, and probably I will end up doing so, but I was hoping I could take the chance to learn something and do it myself with some guidance.

    • This topic was modified 1 year, 11 months ago by Jan Dembowski.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator t-p

    (@t-p)

    After a person buys a product using the stripe payment

    I recommend asking at that plugin’s dedicated support so its developers and support community can help you with this.

    Thread Starter Deon

    (@deon-b)

    I don’t have any plugin installed. I am doing this from scratch, that’s why I asked here.

    Moderator t-p

    (@t-p)

    You mentioned “stripe payment“. What is “stripe payment” then?

    A search of plugins directory for “stripe payment” came up with the following list of plugins: https://www.ads-software.com/plugins/search/stripe+payment/

    Thread Starter Deon

    (@deon-b)

    This is a Stripe Payment Link:

    https://stripe.com/en-es/payments/payment-links

    Thread Starter Deon

    (@deon-b)

    I am not using any plugins.

    I want to know how to set up this in a way that after someone buys using my stripe payment link, an user profile gets created for him in WordPress picking the email he used on the checkout page.

    I think you may get so many people trying to post in the wrong forums that have a bias and think automatically I also am using a plugin or paid theme. I am not.

    I am using a free wp theme and no plugins.

    Stripe told me to ask WordPress about this, and that’s what I am doing.

    Stripe told me to ask WordPress about this, and that’s what I am doing.

    And “WordPress” has already told you what to do, except something seem to be missing in translation ??

    Here we have two independent systems: Stripe and your WordPress-powered site. Neither of the two has any built-in integration with the other. So you need something else to link the two to create the kind of automation you desire.

    You said earlier you’re doing this “from stretch”. What does this mean?

    Are you writing custom coding? If so, where does your code live: as a custom WordPress plugin, or outside of WordPress? Or are you merely generating a Stripe payment link from the Stripe dashboard with no ability or desire to do any custom coding at all?

    The details matter.

    If you’re building a custom app that lives outside of WordPress and you don’t want to use an existing WordPress plugin at all, then you’ll need to leverage the WordPress REST API: https://developer.www.ads-software.com/rest-api/

    If your code lives inside WordPress (as a plugin or theme function), then use WordPress’s built-in register_new_user function (or any of the other flavours explained on the linked page).

    In both cases, your code has to “listen” to your Stripe events to know when a successful payment has been made to trigger your app to register the user in WordPress.

    Finally, if you’re merely generating a payment link on the Stripe dashboard, then… Houston, we have a problem ??

    Moderator bcworkz

    (@bcworkz)

    According to the docs from the Stripe link you provided, you can provide a webhook link that tells your site the status of the payment attempt. You can create a webhook in WP for this in a number of ways:
    1. A custom REST API route/endpoint.
    2. A link to /wp-admin/admin-post.php?action=your_action_name.
    3. A page permalink, a page which uses a custom template to execute the necessary code.

    In the case of #2, you’d add an action callback based on the “action” query string which executes the necessary code. IMO, #3 is best for you because it’s better for interacting with the user.

    Thread Starter Deon

    (@deon-b)

    You said earlier you’re doing this “from stretch”. What does this mean?

    It means you didn’t read properly.

    Anyway thank you everyone for the suggestions, I will look more into the resources you provided.

    –> You said earlier you’re doing this “from stretch”. What does this mean?

    It means you didn’t read properly.

    That was an obvious typo.

    Good luck!

    @deon-b

    have you found any solution? i am looking for the same. i asked chat GPT and it gave me to play with web hooks. if you sort this out , please share .

    Thread Starter Deon

    (@deon-b)

    @jeemomart

    The solution I found is to use Zapier (free account). In Zapier I connected Stripe + WordPress. So once a payment is successful a new profile is created in WordPress using the email used to pay on Stripe.

    @deon-b

    thats great, did you follow any youtube video to do this exactly ?

    can you please share with me the exact method please?

    Thread Starter Deon

    (@deon-b)

    Hi,

    Create an account in Zapier. From there you can add WordPress and Stripe.

    In Stripe choose this trigger: Checkout Session Completed
    In WordPress choose this action: Create User in WordPress

    I did a couple of tests and it worked for me. To be fair with you, I haven’t worked on this project in 2 months, so I don’t have enough data to tell you if it’s 100% reliable, but you can try it. Zapier is very straightforward to use.

    Hi all! I’m trying that solution using zapier but…
    when I setting the action, it asks me a password as a required field. I’d prefer subscribers choose their own in a specific wordpress page.
    Could anyone tell me if that is possible?

    • This reply was modified 1 year, 8 months ago by yaara4.
    Thread Starter Deon

    (@deon-b)

    It seems to me this feature is requested, hopefully some hustler web dev will spot the opportunity and make a quick plugin out of it.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘create user after payment’ is closed to new replies.