Stripe integration with wave

solutions

Mar 11th, 2023 05:21 PM

I will prefer to use stripe instead of paddle, I am searching for a guide to stripe integation. Thank you

bobbyiliev

Mar 12th, 2023 07:38 AM

Hi there,

Stripe is not officially supported by Wave, however you can cherry-pick the changes from this PR here:

https://github.com/thedevdojo/wave/pull/38

It includes all of the changes that you need in order to successfully integrate Stripe and has been used by many community users already.

Hope that this helps!

solutions

Mar 13th, 2023 05:02 AM

Thank you for your quick response! Yes, I found the PR over the weekend and tried to implement but with no avail. I got the error

Class "Laravel\Cashier\Cashier" not found

I tried to fix with

composer require laravel/cashier

I get the following error

[UnexpectedValueException]                                                    
  Could not parse version constraint require: Invalid version string "require"

composer.json has this line under require, is this the issue:

"laravel/cashier": "^14.9"

I ran composer update and it always get killed and noticed that I have composer 1 but not sure if thats the issue and not sure how to update it to composer 2

bobbyiliev

Mar 13th, 2023 06:13 AM

Hi there,

Yes, sounds like you are running out of memory and this is why composer is getting killed. Can you add more memory to your server?

Also, to upgrade composer just use composer self-update --2.

Let me know how it goes.

solutions

Mar 13th, 2023 08:49 AM

I have tried but no success so I am reaching out to cloudways support

bobbyiliev

Mar 13th, 2023 11:20 AM

Ok let me know how it goes! If they fail to help you, you can DM me the SSH details to the server and I can take a look for you!

solutions

Mar 13th, 2023 11:47 AM

Thank you so much for your assistance. I have been with support for hours, they were able to upgrade the composer from their end, clean out swap file and upgrade php to 8.1 Unfortunately I am still experiencing issues composer ran but says that something about incompatibility.

What managed hosting company, will you suggest for wave?

bobbyiliev

Mar 13th, 2023 03:00 PM

Hi there,

Indeed something seems wrong with the composer installation.

What I did was to manually install a second version of composer in ~/tmp and run it with the following command:

php ~/tmp/composer.phar

With that I was able to install the cashier package:

php ~/tmp/composer.phar require laravel/cashier:^13.6

And now the site seems to be loading.

Regarding the managed hosting, I personally use Laravel Forge together with a DigitalOcean server.

Let me know if anything else pops up!

Report
1
solutions

Mar 13th, 2023 03:27 PM

Thanks a million

bobbyiliev

Mar 14th, 2023 07:54 AM

No problem at all! Happy to help!