Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support vendors in blade directive and Request #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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