#James Salcedo
1 messages · Page 1 of 1 (latest)
This front Doc should be good enough, you can choose React on frontend steps and Ruby on backend steps to see its code example
So, I need to create a product on Stripe and specify the price of the product before I can proceed?
Thank you! I actually did work through that, but am having trouble integrating it with Rails. I believe I was getting an error when I clicked the checkout button something about a post and CORS, I will redo it and post my error
Rails have some configuration which automatically turns a redirection into an AJAX request. And AJAX request to Checkout will be rejected by CORS
- The data-remote: true option https://guides.rubyonrails.org/v5.0/working_with_javascript_in_rails.html#form-for
- The data-turbo: true plugin https://github.com/hotwired/turbo-rails