Stripe integration wave

Solved
stefcristian3

Oct 25th, 2022 03:30 AM

Hello, Because in Romania Paddle does not fit....i want to integrate Stripe, but i ask before if i can receive any support or hints on that task?

bobbyiliev

Oct 25th, 2022 04:34 AM

Best Answer

Hi there,

I believe that you should be able to cherry-pick the changes from the following PR and it should work:

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

If you hit any blockers feel free to post the issues here and I will be happy to help out!

Report
1
stefcristian3

Oct 25th, 2022 04:38 AM

Thnx Bobby, for your very quick answer

Report
1
stefcristian3

Oct 25th, 2022 11:06 AM

I have succeed integrate Stripe, thanks again Bobby!!

bobbyiliev

Oct 25th, 2022 12:33 PM

No problem at all! Happy to hear that you got it all working!

stefcristian3

Oct 25th, 2022 11:09 PM

Capture.JPG It was happening after is run migrate on Stripe integration. It is known issue?

bobbyiliev

Oct 26th, 2022 01:29 AM

Hi there,

I don't think that this is a problem, it seems like a limitation in the Voyager Admin panel:

https://github.com/the-control-group/voyager/commit/b5720bad26fc96c776d568718252d5574e3fb7f5

You just need to be careful when modifying the indexes for that table via Voyager, I would suggest sticking to the migration files instead.

The composite index that it is referring to is this line in the stripe migration files:

                $table->index(['user_id', 'stripe_status']);
stefcristian3

Oct 26th, 2022 01:38 AM

I found the issue, i can share this..was three mistakes

  1. in StripeController line 193 str_slug became str::slug from Larael 6
  2. wave/database/migrations/2021_12_10_000002_create_subscriptions_table_stripe.php line 29 $table->index(['user_id', 'stripe_status']); , 'stripe_status' i did not understand this throw the mixed index error. I delete it. 3.wave/database/migrations/2021_12_10_000003_create_subscription_items_table_stripe.php line 26 $table->unique(['subscription_id', 'stripe_price']); , 'stripe_price' i have delete, i did not understand why stripe price should be unique
Report
1
bobbyiliev

Oct 26th, 2022 01:43 AM

Thank you for sharing those details here! That is very helpful!

stefcristian3

Oct 26th, 2022 02:06 AM

I did modified in Voyager, also on data base show same issue

dragazzo

Nov 18th, 2022 09:02 AM

Can you share what you did to make stripe work on wave? I'm really New on laravel so it's Nice to check How is done on it

bobbyiliev

Nov 21st, 2022 01:27 AM

Hey @dragazzo

You can cherry-pick the changes from he following PR:

https://github.com/thedevdojo/wave/pull/38/files#diff-cd8b29c1836da5914c92229557f55afeb8fa1cf8b01e41e262f74e6c8a0a1119

Stripe is not officially supported by Wave at the moment.

We are planning the work for Wave v3 and we plan to add both Stripe and Paddle as payment options.

Best,

Bobby

Report
1