views:

73

answers:

1
+2  A: 

Not sure what is wrong with your code, but it is always good idea to use built-in classes to avoid any issues coming out of YOUR code, so i would suggest you to use this paypal class which will elevate a lot of efforts from your side.

Sarfraz
hey thanks sarfaraz but I have used the same class to do this!
Nishant Shrivastava
@Nishant: oh what a co-incidence ! well i saw your code but no idea where it is getting wrong, seems to be ok but :(
Sarfraz
hey Sarfaraz,Well I rectified the bug I had in my code.But can I use any thing in the add_field.Like when paypal send the value back to our code I am trying to check by the help of some Values likeI am sending this Value to paypal$p->add_field('type', 'admin') And the return values have to be saved in Database by checking if($_REQUEST['type'] == 'admin'){ //-----My Logic----//}Is it allowed to send this field $p->add_field('type', 'admin') to Paypal?
Nishant Shrivastava