Comments (7)
@zoltanszogyenyi will look into it!
from laravel-paddle.
@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.
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.
Wow Paddle began to spam the webhook endpoint:
from laravel-paddle.
My bad! I've configured the one time product to additionally request the webhook endpoint once purchased. Sorry for bothering you!
from laravel-paddle.
@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.
@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)
- SSLv3 error on webhook for Paddle HOT 3
- SSL issue HOT 2
- Getting passthrough value HOT 1
- Laravel 8 Support HOT 3
- A facade root has not been set. HOT 1
- Package installation problem HOT 1
- Sandbox HOT 1
- [139] The given prices format is not valid. HOT 6
- How can I disable Qty and coupon option of paddle using this package? HOT 2
- Multi vendor support? HOT 4
- Return HTTP response
- Support .env variables according read.me HOT 1
- Live mode problem
- installation error on new laravel HOT 1
- paddle billing support HOT 2
- wrong API endpoint for getOrderDetails method HOT 3
- Authentication/Permission Error HOT 1
- "Undefined index: error" when calling getOrderDetails HOT 7
- Paddle's Product Fulfillment webhook will return a 500 Error because there's no 'alert_name' HOT 1
- getPrices returns "Bad Method Call" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-paddle.