Jaxel
Well-known member
I'm working on a donation module block for XenPorta... everything works fantastic so far... except one issue... After a user has send their donation in it gives them a summary "Your Donation is Complete" page, with an orange button for "Return to ----". When I click this button, it properly goes back to the return URL... but it gives a security error in the process...
I've looked at XenForo's payment processor and I see nothing special that prevents this. This is what I have in my form...
So how do I prevent this security error when returning from paypal?
Security error occurred. Please press back, refresh the page, and try again.
I've looked at XenForo's payment processor and I see nothing special that prevents this. This is what I have in my form...
Code:
<form action="{$option.payPalUrl}" method="post" class="upgradeForm">
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="return" value="{$requestPaths.fullBasePath}{xen:link portal/donation}" />
<input type="hidden" name="cancel_return" value="{$requestPaths.fullBasePath}" />
<input type="hidden" name="notify_url" value="{$xenOptions.boardUrl}/donation_callback.php" />
<input type="hidden" name="custom" value="{$visitor.user_id},{$donation.id},token,{$visitor.csrf_token_page}" />
So how do I prevent this security error when returning from paypal?