Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In-depth article on Stripe integration with Strapi #1391

Open
1 task done
TechMakanaki opened this issue May 4, 2024 · 7 comments
Open
1 task done

In-depth article on Stripe integration with Strapi #1391

TechMakanaki opened this issue May 4, 2024 · 7 comments
Assignees
Labels
Beginner Expertise In progress Tutorial being created

Comments

@TechMakanaki
Copy link

What is your article idea?

Integrating Stripe with Strapi:

1. Set up a Stripe Account

  • Create an account on the Stripe website.
  • Access your API keys from the Stripe dashboard.

2. Install Dependencies

  • Set up a new Strapi project or use an existing one.
  • Install the Stripe Node.js SDK via npm or yarn:
    npm install stripe
    

3. Configure Stripe Keys

  • Store your Stripe API keys securely.
  • Consider using environment variables for added security.

4. Define Data Models

  • Design your Strapi content types to store payment-related data.
  • Examples include customers, products, orders, and subscriptions.

5. Implement Server-Side Logic

  • Create controllers to handle payment actions such as:
    • Creating charges
    • Managing customers
    • Handling subscriptions

6. Set up Webhooks

  • Create webhook endpoints in your Strapi backend to receive events from Stripe.
  • Secure your webhook endpoints with authentication to prevent abuse.

7. Handle Stripe Events

  • Implement event handlers to process events received from Stripe webhooks.
  • Update your database and trigger actions based on event types.

8. Integrate Use Case

  • Develop frontend components to interact with your Strapi backend for payment-related actions.

Additional Resources

  • Refer to the official Stripe documentation for detailed API reference.

What are the objectives of your article?

To effectively leverage Stripe within your Strapi project to handle payments and subscriptions seamlessly.

What is your expertise as a developer or writer?

Intermediate

What type of post is this?

Tutorial

Terms & Conditions

  • I have read the Write for the Community program guidelines.
@Theodore-Kelechukwu-Onyejiaku
Copy link
Collaborator

Hi @TechMakanaki ,

This looks good. Would you consider building a project and integrate stripe payment plugin from the Strapi marketplace?

Please let me know!

@TechMakanaki
Copy link
Author

TechMakanaki commented May 9, 2024

Hello @Theodore-Kelechukwu-Onyejiaku ,

That's not an issue.

@Theodore-Kelechukwu-Onyejiaku
Copy link
Collaborator

Thank you @TechMakanaki ,

Could you please provide me with details of the project you will be building with the Strapi Payment Plugin?

@TechMakanaki
Copy link
Author

Thank you @Theodore-Kelechukwu-Onyejiaku ,

I would love to create a Gift Card app/web with React Js and Strapi Payment Plugin.

@Theodore-Kelechukwu-Onyejiaku
Copy link
Collaborator

Great! So we will use Strapi Stripe plugin from the marketplace.

When you refer to React, will you be using Next.Js?

Will you be willing to make this an in-depth tutorial?

Just curious, are you still working on this, do you have any challenges: #1277?

@TechMakanaki
Copy link
Author

Hi @Theodore-Kelechukwu-Onyejiaku ,

Yes, I can work with Next.js.
Definitely it will be in-depth as I stated in the topic description.

I am still working on it, I encountered a problem recently. My product was fetching using Axios but unfortunately my system crashed and I have to restart the project again but I couldn't filter products anyone without getting "internal server error".

@Theodore-Kelechukwu-Onyejiaku
Copy link
Collaborator

Hi @TechMakanaki ,

I am sorry to hear about your computer. As for your project, please let me know how I can help you. Also, you can ping me so we can both look at it.

Since we have agreed we are using the Strapi Stripe plugin, using Next.js as the frontend, and expecting an in-depth tutorial, please proceed. Depending on the effort and quality of your content, this might be changed to intermediate.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner Expertise In progress Tutorial being created
Projects
None yet
Development

No branches or pull requests

2 participants