Coder Social home page Coder Social logo

Comments (7)

pascalbaljet avatar pascalbaljet commented on June 11, 2024 2

@zoltanszogyenyi will look into it!

from laravel-paddle.

zoltanszogyenyi avatar zoltanszogyenyi commented on June 11, 2024 1

@sandulat Oh that's dirty alright lol. Here's what I managed to do to still use the library:

When setting the main webhook (the one you must choose as fulfillment) I added a static value with "alert_name" as a label and "payment_suceeded" as the value. Then I would basically hackishly use the PaymentSuceeded event as a hook to get the data from the main webhook.

I contacted the Paddle team and they recommend using the main webhook comparative to the PaymentSucceeded one because they also make security checks after the payment, so there are some rare occasions when your code may be faulty.

Anyways, I hope the author of this library gives support to this fulfillment webhook. It's a great library!

from laravel-paddle.

pascalbaljet avatar pascalbaljet commented on June 11, 2024 1

I've just tagged v1.1.2, which has a new GenericWebhook event. This event gets fired when the alert_name is missing. It also brings support for accessing the request:

<?php

namespace App\Listeners;

use ProtoneMedia\LaravelPaddle\Events\GenericWebhook;

class HandleProductFulfillment
{
    public function handle(GenericWebhook $event)
    {
        $webhookData = $event->all();
        $request = $event->getRequest();
    }
}

from laravel-paddle.

sandulat avatar sandulat commented on June 11, 2024

Wow Paddle began to spam the webhook endpoint:
image

from laravel-paddle.

sandulat avatar sandulat commented on June 11, 2024

My bad! I've configured the one time product to additionally request the webhook endpoint once purchased. Sorry for bothering you!

from laravel-paddle.

zoltanszogyenyi avatar zoltanszogyenyi commented on June 11, 2024

@sandulat I'm facing the same problem. I have already created a webhook for the PaymentSuccess, but I'm not sure how to disable the other ProductFulfillment webhook on Paddle. I must choose an option from there: download, license or webhook. Thanks!

from laravel-paddle.

sandulat avatar sandulat commented on June 11, 2024

@zoltanszogyenyi I've chosen the "webhook" option and ended up pointing it to the homepage/landing page of my app so that the webhook would just receive a 200 response. Very dirty, I know. But hey, it works 😄! I'd also love to find out a better way.

from laravel-paddle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.