Closed 4lysson-a closed 4 hours ago
Hello, I tried to solve the issue.
This is what I did:
Modified the createAccount function to handle errors and delete the user from both Stripe and Back4App databases if an error occurs during the account creation process. Also added a new deleteCustomer function to the stripe-service.js file.
You can review changes in this commit: https://github.com/lattaai13/4lysson-a-visualizaai-71/commit/42fd72d1b46da3e74d373424238ffcca2b429d76.
[!CAUTION] Disclaimer: The commit was created by Latta AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
This issue was tried to solve for free by Latta AI - https://latta.ai/ourmission
If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.
Accounts that are created with some error in the process do not delete their users from their respective databases