Hi,
I added a PayPal button with those parameters:
<form action="@paypal.getUrl()" method="post" target="_top" id="paypal-form">
<input type="hidden" name="hosted_button_id" value="@paypal.getButtonId()">
<input type="hidden" name="custom" value="@token">
<input type="hidden" name="invoice" value="@paypal.generateTransactionId(user)">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="charset" value="UTF-8">
<input type="hidden" name="currency_code" value="CHF">
<input type="hidden" name="lc" value="@lang().language()_@lang().code().toUpperCase()">
<input type="hidden" name="image_url" value='@routes.Assets.versioned("images/icons/red-logo-white.png").absoluteURL()'>
<input type="hidden" name="solution_type" value="Mark">
<input type="hidden" name="landing_page" value="Login">
<input type="hidden" name="return" value='@routes.UserController.returnMessage("paypal-success").absoluteURL()'>
<input type="hidden" name="cancel_return" value='@routes.UserController.returnMessage("paypal-cancel").absoluteURL()'>
@if(user.getFirstName() != null) {
<input type="hidden" name="first_name" value="@user.getFirstName()">
}
<input type="hidden" name="last_name" value="@user.getLastName()">
@if(user.getEmail() != null) {
<input type="hidden" name="email" value="@user.getEmail()">
}
<input type="hidden" name="on0" value="Credit">
<input type="hidden" name="os0" value="20.00">
</form>
I enabled IPN and auto return to merchant website in my preferences.
Unfortunately, after 10 seconds, the user doesn't get redirected on my website. He gets stuck on the message that tell him to go back to the merchant website. If the user click on the link before 10 seconds, he gets redirected to the same message.
It used to work before. It happens on the sandbox version, I didn't try the live version.
... View more