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

Unnecessary repeated "customer_id" resource requests if user breaks process flow #6

Open
POWERBACKme opened this issue Nov 3, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@POWERBACKme
Copy link
Owner

Customer_id is a property under Stripe's Payment API.

When verifying a payment method, the app sends a request to Stripe for this value. However, a user is free to navigate backward in the process, eventually bringing themselves back at some point to requesting the Customer_id, which happens each time a user breaks and returns to the process.

Instead, it might be better to store Customer_id somehow, if not with Stripe directly, then in the database or other storage.

relevant code:
components/forms/Payment/Payment.tsx
routes/api/payments.js
controller/payments/
models/User.js

@POWERBACKme POWERBACKme added enhancement New feature or request good first issue Good for newcomers labels Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant