After creating the node, how can I redirect users to payment page? I have turned off payment links in message.
I want the users to be redirected after they have created the node. I'm using multiform and all works well but after creating the node, I get 'Access denied' error for visitors.

I'd appreciate your reply.

Regards.

Comments

beautifulmind’s picture

[update]
I have solved the issue by checking Replace 403 Access Denied page?
I do get a page with paypal buttong and a textbox for email address. I want that box to be filled with email address provided in the node field itself.

Should I do with hook_form_alter? Or is there any better way?

I'd appreciate your reply.

Regards.

aacraig’s picture

Yes, that is the correct solution, to replace the 403 Access Denied page.

Paypal API will ask for an email address and automatically create a user from that address after payment has gone through if you allow anonymous users to create the node content.

Also, check paypal_api.api.php for other hooks you can use.

dankoB’s picture

It seems that replacing ALL access denied errors with the PayPal API page could have some strange results, so I think I'd like to leave Login Toboggan handling the majority of those. But I don't know how to "implement hook_paypal_api_access_denied()" nor how to use hook_form_alter. Can you please explain how to do this? I'm using Deferred create and I'd like users to be routed straight to a PayPal payment page after filling in an event registration form, rather than getting a message saying showing the info as Unpublished. Any mention of published or unpublished is undesirable, since it may make the user think their registration info will not be kept private.