Hosted payment issue on site

misterakko
Contributor
Contributor

Hi everybody. I'm having some weird problem with the payment form on a customer's website. My code, which works beautifully on a different ecommerce, produces the following HTML:

<form action="https://securepayments.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess" method="POST" id="send-to-paypal">
    <input type="hidden" name="address_override" value="false">
    <input type="hidden" name="showShippingAddress" value="true">
    <input type="hidden" name="currency_code" value="EUR">
    <input type="hidden" name="billing_first_name" value="Luca">
    <input type="hidden" name="billing_country" value="IT">
    <input type="hidden" name="EMAIL" value="--my email address here --">
    <input type="hidden" name="return" value="https://www.bergogliolibri.it/libri-antichi/ordine-accettato-0228414.html?search=14884">
    <input type="hidden" name="cancel_return" value="https://www.bergogliolibri.it/sarat/cart/checkout/paypalko.php?cartid=14884">
    <input type="hidden" name="notify_url" value="https://www.bergogliolibri.it/sarat/cart/checkout/paypalok.php">
    <input type="hidden" name="invoice" value="14884">
    <input type="hidden" name="subtotal" value="30">
    <input type="hidden" name="shipping" value="0.00">
    <input type="hidden" name="cmd" value="_hosted-payment">
    <input type="hidden" name="paymentaction" value="sale">
    <input type="hidden" name="business" value="info_api2.bergogliolibri.it">
</form>
<script type="text/javascript">function fsubmit() { document.getElementById("send-to-paypal").submit();}</script>

This, to me, looks correct. But on execution I get an error dialog box saying

Error Processing Payment

Error Message

This transaction can't be processed. Please pay with another card.

 
I really do not know what to do...

 

Login to Me Too
11 REPLIES 11

misterakko
Contributor
Contributor

Sorry to be a bother, but the customer tells me that they did enable PayPal Pro and have confirmation AND the submission still fails as you can see at the test URL https://bergogliolibri.it/peova.html

If you have any suggestion... thanks in advance!

 

Login to Me Too

MTS_Andre
Moderator
Moderator

Hi, in this case check the value of the variable "business" in the PRO form you are using, it must be one of the following two:
"Secure Merchant ID (found on the profile page) or the email address associated with your PayPal account."
If you pass the email address it must be in the standard email format myname@mydomain.com and not like the API user format myname_api1.mydomain.com
This will allow the PRO form working on https://bergogliolibri.it/peova.html

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.