1

I am having trouble installing the stripe plugin to Grails 4.

I added compile "org.grails.plugins:stripe:2.10" to the dependencies in the build.gradle file.

Then used grails install stripe in the powershell.

I got this error:

| Error Error initializing classpath: Could not find org.grails.plugins:stripe:2.10.
Searched in the following locations:
  - https://repo.grails.org/grails/core/org/grails/plugins/stripe/2.10/stripe-2.10.pom
  - https://repo.grails.org/grails/core/org/grails/plugins/stripe/2.10/stripe-2.10.jar
Required by:
    project : (Use --stacktrace to see the full trace)```

Michal_Szulc
  • 4,097
  • 6
  • 32
  • 59
Rathetsu
  • 13
  • 3
  • Here are very descriptive docs with examples: https://stripe.com/docs/api . imho it seems very user-friendly – Michal_Szulc Aug 04 '20 at 20:58
  • "imho it seems very user-friendly" - @Michal_Szulc I don't think there is any info there that relates to resolving the error mentioned in the question. The error is Grails specific and the error is caused becaus the author is trying to resolve a Grails 2 plugin in a Grails 3/4 app, which is not supported. – Jeff Scott Brown Aug 04 '20 at 23:24
  • Of course, you are right. Just wanted to encourage an author to implement his own integration basing on the official docs (in fact he even asked about it under your answer) – Michal_Szulc Aug 05 '20 at 14:36
  • Did a plugin recently which covers paypal/stripe/square https://plugins.grails.org/plugin/vahidhedayati/payment - hopefully it is easy enough to use embed – V H Jul 06 '21 at 22:47

1 Answers1

1

As far as I know there isn't a version of that plugin which is compatible with Grails 4. The code at https://github.com/bobbywarner/grails-stripe has not been updated in years.

There is no reason to run grails install stripe in Grails 4.

Jeff Scott Brown
  • 26,804
  • 2
  • 30
  • 47
  • Thanks a lot. Is there any other way to use Stripe with a Grails server? – Rathetsu Aug 05 '20 at 06:55
  • "Is there any other way to use Stripe with a Grails server?" - Yes. There are a number of options. The Grails 2 plugin could be upgraded to support Grails 4. You could use some library which provides integration with Stripe. You could write the integration yourself. – Jeff Scott Brown Aug 05 '20 at 14:49
  • Thanks a lot for your help. – Rathetsu Aug 05 '20 at 23:24