Skip to content

Conversation

Djuki
Copy link

@Djuki Djuki commented Feb 22, 2022

I mentioned this feature in #28.

I added support for multi vendors via configuration in Request:

Usage:

Paddle::product()
        ->generatePayLink([
            'vendor_id' => '44334',
            'vendor_auth_code' => 'fdfsdfsdf'
        ])
        ->productId('5345')
        ->send();

Also, I added support for multi vendors in blade directive:

@paddle(123)

Both changes are covered in unit tests. What have left is to add support for verifySignature in WebhookController, but only this method can support overloading public_key from config, not the controller because I think we can't support multi-vendors in that case. Users need to create own controllers because they know where from they will read public_key.

We can discuss Do we want to change WebhookController or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant