Wave 1.0.1 - User Cannot Subscribe to Plans

Solved
jzsf

Jun 21st, 2020 05:56 PM

Recently installed Wave 1.0.1 (tnylea-wave-93306c32318a1f7cbbe41189968b8a7dfd46a54b) via documentation (https://wave.devdojo.com/docs/1.0/installation).

I set up my Mailtrap credentials and Stripe API keys (pk_test, sk_test).

On my Wave app, when I create a dummy user and try to subscribe to a plan using Stripe's test credit card numbers (https://stripe.com/docs/testing), the subscription process fails silently. In Stripe's dashboard, I only see that a customer record was created, but there are no subscriptions, transactions, nor are any transactional emails sent from the app.

UPDATE: Found the following debug info in the Stripe logs: Capture.PNG

Looking at the 404: invalid_request.PNG

bobbyiliev

Jun 21st, 2020 07:48 PM

Hi there,

Would you mind confirming if you have followed the documentation here on how to configure your Wave and Stripe subscriptions plans:

https://wave.devdojo.com/docs/1.0/features/subscription-plans

Report
1
jzsf

Jun 21st, 2020 09:55 PM

Thanks for the quick responses, really appreciated.

I created a product in Stripe as you directed, but the interface has changed from what is pictured in the Wave documentation; I don't seem able to set an ID for the product, Stripe auto-generates one (see image 1). I used the auto-generated ID in Wave for the "Standard" plan (see image 2). However, the subscription signup still doesn't seem to be working (see images 3 and 4), it just ends up reloading the page: no success or error messages and the plan remains unsubscribed. (Note: I have APP_DEBUG=true in my .env.)

Image 1: stripe_test_product.png

Image 2: wave_plans.png

Image 3: plan_signup.png

Image 4: stripe_log.png

jzsf

Jun 22nd, 2020 09:26 PM

Hi guys (@tnylea, @bobbyiliev):

Please provide some sort of response, even if it's just: "we're looking into it". I know this is a busy and hectic time, but the speed of your previous responses, your daily posts, and Twitter activity suggest you're not completely MIA, so don't leave us enthusiastic customers hanging.

I did a test and your online demo works if I use a Stripe-based testing credit card number (e.g., 4242 4242 4242 4242 01/21 123 90210), see screenshots below:

demo-subscription-works.png

demo-subscription-works-2.png

demo-subscription-works-3.png

Is your demo running an older version of Wave? or is it running Wave 1.0.1? Let us know what we need to do to get your product working as advertised.

Thanks!

tnylea

Jun 23rd, 2020 03:30 AM

Hey guys, sorry for the late response, i’ll be jumping on these issues tomorrow to help out. thanks

Report
1
tnylea

Jun 23rd, 2020 10:25 PM

Best Answer

Hey Jzsf,

You should be able to download the 1.0.2 version which has some fixes for the latest version of Cashier ;)

There were a few things in the theme files that needed to be updated and there was an additional migration needed.

If you want to download a new version you can run through the install. Otherwise, if you want to keep the current project, simply replace the wave folder and the theme folder you are using resources/views/themes/uikit and then run the migrate command:

php artisan migrate

One more thing, the UI has changed slightly in Stripe, so when you create a new product and pricing you will need to use the API ID, for that product to match with the plan in wave:

Screen Shot 2020-06-23 at 3.20.45 PM.png

If you have any other issues, please feel free to open up a new question.

Thanks!

gch06130

Jun 24th, 2020 12:28 AM

Tested the following use cases :

  • new user subscription : OK

  • subscription cancellation : OK with correct grace period calculation

  • subscription renewal: OK

  • payment method update (change credit card from 4242424242424242 to 4000002760003184 for instance) : OK

  • change server date to today + 32 days, to simulate a login after a cancelled subscription : OK, the user has to subscribe again

  • switch plans : OK on a functional point of view, still need to check what happens for Wave invoices in this case (and also with VAT for EU countries ...)

Report
1