What is the difference in the repo app using Stripe's "V1" JS file vs the newer "V2"?
rceee opened this issue · comments
I noticed that the javascript called remotely is Stripe's V1 (version 1 I assume). Is there any functionality or major differences in V1 and V2 that would warrant switching/upgrading to V2? Working through how the local JS was built now; but it's very different from Stripe's example Rails documentation. Would switching to V2 "break" the app (require a re-write of the local JS)?
No problem raising the issue here. I haven't looked at the new Stripe V2 JavaScript so I can't answer. Perhaps someone else can.
Thanks. Yeah, it seems all the Stripe documentation is written around V2 now, so it makes it a bit difficult to modify/add-on to the app as far as Stripe goes, not knowing if V1 supports all the functionality that V2 is based around (and documented on, etc).
The example app (and the tutorial) is overdue for an update. Unfortunately, due to the scope of the project, I won't have an update available until later in the year. You can use the existing version without any problem and update later.
There is a new version of this application for Rails 4.2 using the Payola gem.