code=INVALID_BUSINESS_ERROR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I get this error when running my script:
code=INVALID_BUSINESS_ERROR
I am using sandbox to test my payment system. Here is the form:
<form action='https://www.paypal.com/cgi-bin/webscr' method ='POST' id='paypal' onsubmit='return true' name='Form' >
<?php
$graphic = $_POST["Graphic"];
$Price = $_POST["Price"];
$Person = $_POST["Person"];
?>
<input type='hidden' name='cmd' value='_cart' >
<input type='hidden' name='business' value='xxxxxxxxxx' >
<input type='hidden' name='upload' value='1' >
<INPUT TYPE='hidden' id='RETURL' NAME='return' >
<script>
URL = 'https://ecovib2d.com.au/workfromhome/yourart/';
Person = <?php echo json_encode($Person); ?>;
Graphic = <?php echo json_encode($graphic); ?>;
document.getElementById('RETURL').value = URL + Person + '/Graphic/' + Graphic ;
</script>
<INPUT TYPE='hidden' NAME='currency_code' value='AUD'>
<input type='hidden' id='Item1' name='item_name_1' >
<script>
document.getElementById('Item1').value = 'Your Graphic in JPEG format -' + Graphic ;
</script>
<input type='hidden' id='Cost' name='amount_1' >
<script>
Price = <?php echo json_encode($Price); ?>;
document.getElementById('Cost').value = Price;
</script>
<INPUT TYPE='hidden' name='address_override' value='1' >
</form>
Do i have to update to a new payment system from paypal to continue testing?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
The problem is solved.
I forgot to use the correct URL in the action attribute.
Thanks.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.