PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Testing Billing Never Creates Account

meaghanpsavage

Feb 4th, 2023 08:17 AM

I'm testing out the billing functionality using paddle but having issues running through all of the steps to create the user profile. It fails after successful payment.

I've created a sandbox account in paddle and linked to my dev application in the .env file.

When I try to test this out by using the "Get Started" on one of the plans I am able to successfully pay for the plan and see the payment populate on my paddle dashboard but it never moves to the next screen. It keeps loading 'Finishing up your order' and never moves past that to actually create the user account and profile. When I go to the admin page afterwards I can see that the user was never actually created.

Any ideas on what could be wrong?

thinkverse

Feb 4th, 2023 09:34 AM

Check your network tab and browser console for any errors, and disable potential extensions like ad blockers, etc that could block requests. Check if there's a laravel.log file located in storage/logs/, if it exists look at the latest log message for an error, the latest error will be appended at the bottom of the file and start with a timestamp, and the log level, like [2023-02-03 15:57:28] local.ERROR.

meaghanpsavage

Feb 6th, 2023 03:56 PM

I don't have any ad blockers that could be blocking the request. I do get the following local error:

[2023-02-06 23:54:01] local.ERROR: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://sandbox-checkout.paddle.com/api/1.0/order?checkout_id=1253767-chre3d5897a510a-78f2a7807b {"exception":"[object] (GuzzleHttp\Exception\RequestException(code: 0): cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://sandbox-checkout.paddle.com/api/1.0/order?checkout_id=1253767-chre3d5897a510a-78f2a7807b at C:\wamp64\www\watchdog\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:211)

thinkverse

Feb 6th, 2023 04:40 PM

@bluepundit has a written a post about cURL error 60 when using Laravel that contains a possible solution for you, give that a read. 🙂

meaghanpsavage

Feb 7th, 2023 06:08 PM

Thanks, that was really helpful and resolved the original error! Unfortunately, I'm getting a different error now about not having a premium target class. I'll try researching to see if there are other examples of this but if you know of a fix for this as well please let me know!

[2023-02-07 00:18:27] local.ERROR: Target class [premium] does not exist. {"userId":2,"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [premium] does not exist. at C:\\wamp64\\www\\watchdog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php:895)


[previous exception] [object] (ReflectionException(code: -1): Class \"premium\" does not exist at C:\\wamp64\\www\\watchdog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php:893)