⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Integrating with Stripe checkout



dano2
  • profile picture
  • Member

Posted 02 July 2015 - 11:35 AM

Basically Stripe checkout works by using a JS script to intercept a form submission and append a token to the form as a hidden field and THEN submits the form.

 

My desire is to just modify GC's Add functionality to do this.  

 

Questions:

 

1) I still want to leverage GC's validation functionality. So, is there an elegant place right between successful validation and form submission that I could stop submission, then trigger my stripe function which would ultimately end up resubmitting the form, only the second time around with a token id present?

 

2) That new hidden ID will be accessible within my callback_after_insert function, right?

 

3) Finally, if I'm running callback_after_insert, does that change what the ajax request returns?

 

 

Thanks.


dano2
  • profile picture
  • Member

Posted 03 July 2015 - 06:30 AM

I figured it out. Nevermind.