Forums

More CUSTOM fields in PayPal Redirect

enzo.orsi 10 May, 2016
I want to pass more parameters to PayPal Redirect, in Extra Params:

custom=custom_paypal


where

$form->data['custom_paypal'] = $form->data['id'] . htmlspecialchars_decode("&codice=", ENT_NOQUOTES) . $form->data['codice'];


But in notify_url I get:

&id=1%26codice%3Dtest


Anyone experienced something similar? Any idea?
Thank you!!!
GreyHead 11 May, 2016
Hi enzo_orsi,

What are you trying to do exactly? It looks as though the & and the = have been urlencoded for inclusion in the URL - that is normal.

Bob
enzo.orsi 11 May, 2016
Hi Bob,
I want to pass more parameters in PayPal Redirect.
In extra params I am using:
custom=my-variable1

I would like to pass another variable, something like
custom=my-variable1&custom2=my-variable2

I do not know if it is clear...
GreyHead 11 May, 2016
Hi enzo.orsi,

That's two variable not one, please put each one on a separate line.

Bob
enzo.orsi 11 May, 2016

Hi enzo.orsi,

That's two variable not one, please put each one on a separate line.

Bob



Thanks Bob.
But can I use any kind of variables in PayPal Redirect?
As far as I know, (a part from the standard ones) I can use only CUSTOM.
Am I wrong?
GreyHead 11 May, 2016
Hi enzo.orsi,

You can add any parameter name that PayPal will recognise. If you need to send two values in the same parameter then you could send custom=value_1#value_2 or something similar.

Bob
This topic is locked and no more replies can be posted.