Skip to content

Conversation

@sergunik
Copy link
Contributor

I've added return_url validation parameter because need to have redirection after payment. Paddle API supports it.
Also Added annotation in GeneratePayLinkRequest class because my PHPStorm likes it :)
Cheers!

@pascalbaljet pascalbaljet merged commit a994a8a into protonemedia:master Apr 25, 2021
@pascalbaljet
Copy link
Contributor

Thank you!

@brunocfalcao
Copy link

brunocfalcao commented Nov 17, 2021

Hi,

If you check the PayLink reference, we can pass a custom attribute like {checkout_hash}, so if you use validation 'URL' it will give an error if I try to use that special Paddle parameter.

The (untested yet) way to make it is to use the urlencode like this:

            ->returnUrl(env('PADDLE_RETURN_URL').'/'.urlencode('{checkout_hash}'))

Maybe that validation should be removed or allowed to use {checkout_hash} ?

Thanks!
Bruno

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.

4 participants