# Hire expert -- fix my code!

**URL:** <https://forum.wixstudio.com/t/hire-expert-fix-my-code/42045>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [March 29, 2018, 9:56pm UTC](https://forum.wixstudio.com/t/hire-expert-fix-my-code/42045 "2018-03-29T21:56:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![annie-lucid](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/annie-lucid/32/1522_2.png) [@annie-lucid](https://forum.wixstudio.com/u/annie-lucid)\
**Post date:** [March 29, 2018, 9:56pm UTC](https://forum.wixstudio.com/t/hire-expert-fix-my-code/42045/1 "2018-03-29T21:56:42Z")

</div>

I’ve been all over the forum for the last week, driving a few of you nuts already I’m sure… but I cannot figure out how to make this code work.

I need to:

- Submit payment to Stripe
- Make record of payment in DB
- If successful, redirect to “success” page

What I really need is someone who can look at my code, make it work, and then briefly walk me through any questions so I know what I’ve been missing all this time.

sends the payment to Stripe and I receive the token ID in the console, but it doesn’t process and I don’t receive the charge response ID. Also, this currently submits the user’s name to a DB and always redirects to “success” page, but I recognize that these things should only happen if the payment is actually successful; otherwise, I need some kind of error message added.Right now I have 2 “versions” of this code, and both basically do the same thing:

Version 1:

 ![](https://us1.discourse-cdn.com/wix/original/3X/e/f/eff0a0f3f9a8aa03eb8063361b68d2ca91de6167.png)

Version 2:

![](https://us1.discourse-cdn.com/wix/original/3X/3/f/3f0d2b463ed7aec484125da5109dbc0e30886e7b.png)

Please help!! I’m happy to hire anyone who can get me through this for an hour or 2 of work if I can get this done ASAP!

Contact me here, or directly at [annie@twentysevencreative.com](mailto:annie@twentysevencreative.com)

Thanks in advance!
