I have an issue with making PayPal sandbox payments. Whenever I try to make a payment it requires me to log into the buyer account, but when I do log in I get redirected to the buyer profile page. If I then try to repeat the payment again, it still asks me to log in and if I do login I once again get redirected to the buyer profile page.
The payments were working fine a day or two ago on a test server that hasn't had anything changed on it since then. I tried clearing cookies and going incognito as recommended by some people, but that didn't seem to help.
Has anyone else encountered this issue?
In answer to myself it seems that it's a problem with PayPal sandbox which is broken and nobody cares about it at PayPal!!! I waste 3 days on this problem. Grrrr
I also found this: https://www.paypal-community.com/t5/About-Business/Paypal-redirect-issue/m-p/1242652
AND this: https://www.paypal-community.com/t5/About-Payments/Something-change-with-paypal-sandbox-donations/m-p/1246095#M97864
I am seriously looking for an alternative to PayPal to manage my subscriptions buttons. Does anyone have any suggestions?
Best Regards,
HB
I Have the same issue with a subscription button... What's going on with PayPal?
My code is as follows:
<form action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post' target='_top'>
<input type='hidden' name='business' value='example-facilitator#example.com' />
<input type='hidden' name='cmd' value='_xclick-subscriptions' />
<input type='hidden' name='country' value='UK' />
<input type='hidden' name='no_note' value='1' />
<input type='hidden' name='charset' value='utf-8' />
<input type='hidden' name='lc' value='UK' />
<input type='hidden' name='no_shipping' value='1' />
<input type='hidden' name='sra' value='1' />
<input type='hidden' name='src' value='1' />
<input type='hidden' name='modify' value='0' />
<input type='hidden' name='usr_manage' value='0' />
<input type='hidden' name='invoice' value='INV-L1-2000002-1498316504' />
<input type='hidden' name='item_number' value='pln-l1s0p0' />
<input type='hidden' name='p3' value='1' />
<input type='hidden' name='t3' value='M' />
<input type='hidden' name='rm' value='0' />
<input type='hidden' name='return' value='http://www.example.com' />
<input type='hidden' name='cancel_return' value='http://www.example.com' />
<input type='hidden' name='shopping_url' value='http://www.example.com' />
<input type='hidden' name='item_name' value='Monthly subscription: Basic Plan' id='item_name-basic-monthly' />
<input type='hidden' name='currency_code' value='GBP' />
<select name='a3' id='a3-basic-monthly' style='font-size:110%;'>
<option value='5.00'>5.00 GBP (no options)</option>
<option value='9.80'>+ Options: 9.80 GBP</option>
</select>
<input style='width:170px; height:40px;' type='image' src='https://www.paypal.com/en_GB/i/btn/btn_subscribe_LG.gif' border='0' name='submit' alt='Purchase with PayPal' />
<img alt='' border='0' src='https://www.paypalobjects.com/en_GB/i/scr/pixel.gif' width='1' height='1' />
</form>
Best Regards,
HB
Related
I'm trying to put a PayPal form on my website but I would also like to put custom fields on it.
I mean, I would like to receive the details that maybe are different from the PayPal details.
Maybe someone does a payment but wants to use a PayPal account with a different email, so I would like to know both the emails.
I would like to create a form with these fields:
First name
Last name
Personal email (not Paypal email)
and I want to be able to see these information when I receive the payment.
This is my form:
<div id="paynow" class="contact_form_invoice_payment">
<div class="invoice_payment_title">Pay your invoice here</div>
<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
<input value="_xclick" name="cmd" type="hidden">
<input value="nessa#stressless.ie" name="business" type="hidden">
<input value="http://www.matrix-test.com/stressless/" name="return" type="hidden">
<input value="0" name="no_shipping" type="hidden">
<input value="1" name="no_note" type="hidden">
<input value="EUR" name="currency_code" type="hidden">
<input value="IE" name="lc" type="hidden">
<input value="PP-BuyNowBF" name="bn" type="hidden">
<input value="0" name="tax" type="hidden">
<input value="Online Payment" name="item_name" type="hidden">
<input value="OP" name="item_number" type="hidden">
<div class="first_name_invoice_payment">
First name (requiered) <br />
<input value="" name="first_name">
</div>
<div class="last_name_invoice_payment">
Last name (requiered)<br />
<input value="" name="last_name">
</div>
<div class="email_invoice_payment">
Email (requiered)<br />
<input value="" name="email">
</div>
<div class="first_name_invoice_payment">
Invoice Number (requiered)<br />
<input id="inv" value="" name="item_number">
</div>
<div class="last_name_invoice_payment">
Amount - Euro Only (requiered)<br />
<input id="amt" value="" name="amount">
</div>
<div class="job_title_invoice_payment">
<input alt="PayPal - The safer, easier way to pay online!" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" type="image" class="no-width image" style="width:auto !important; border:none; margin-top:20px;">
<img height="1" width="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="">
</div>
</form>
</div>
I tried to put these fields:
name="first_name"
name="last_name"
name="email"
but I can't see them in the PayPal email and even in the PayPal backoffice.
Try using the variables below to gather the information you are looking for:
on0 = CustomerName
os0 = "Enter First and Last Name"
on1 = CustomerEmail
os1 = "Enter Email Address"
Developer: https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
Your updated code would look similar to this:
<input value="CustomerName" name="on0" type="hidden">
<input value="CustomerEmail" name="on1" type="hidden">
<div class="first_name_invoice_payment">
First/Last name (requiered) <br />
<input value="" name="os0">
</div>
<div class="email_invoice_payment">
Email (requiered)<br />
<input value="" name="os1">
</div>
I'm creating an online shop and all seems to be good but my specified notify_url seems to not get called after the payment succeeded.
<?php
echo "
<form action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='charset' value='utf-8'>
<input type='hidden' value='$price' name='amount' />
<input name='currency_code' type='hidden' value='EUR' />
<input name='shipping' type='hidden' value='0.00' />
<input name='tax' type='hidden' value='0.00' />
<input name='return' type='hidden' value='$nddaff/refill.php' />
<input name='cancel_return' type='hidden' value='$nddaff/refill.php' />
<input name='notify_url' type='hidden' value='http://domain.com/validationpaypal.php' />
<input name='cmd' type='hidden' value='_xclick' />
<input name='business' type='hidden' value='test-facilitator#gmail.com'/>
<input name='item_name' type='hidden' value='$name' />
<input name='custom' type='hidden' value='id=$id&type=$type' />
<input name='lc' type='hidden' value='FR' />
<input name='bn' type='hidden' value='PP-BuyNowBF' />
<input name='sub' value='Buy Now - $price"."€' type='submit' /></form>";
?>
Answer :
There were a bug in paypal sandbox yesterday, all works fine today !
Thanks all for helping !
I'm confounded why this won't work - the first select works, the second one doesn't. The first one though, does not provide any textual info about the selection.
<form action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_xclick'>
<input type='hidden' name='business' value='payments#site.com'>
<select name='os0'>
<option value='25€ Individual'>Individual rate - 25€</option>
<option value='75€ Group'>Agency rate - 75€</option>
</select>
<input type='hidden' name='option_index' value='0'>
<input type='hidden' name='option_select0' value='25€ Individual'>
<input type='hidden' name='option_amount0' value='25.00'>
<input type='hidden' name='option_select1' value='75€ Group'>
<input type='hidden' name='option_amount1' value='75.00'>
<input type='hidden' name='currency_code' value='EUR'>
<input type='hidden' name='return' value='http://www.site.com/backtoyou/'>
<input type='submit' value='Pay with PayPal!'>
<img alt='' border='0' src='https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif' width='1' height='1'>
</form>
I have two forms with different values in one page.
I want get input value of the form that user clicks on it's submit button, using mootools code.
Mootools code most work for two forms, as same:
<form class="cart_form" >
<input type="hidden" name="order_code" value="KWL-hgy" />
<input type="hidden" name="price" value="40000" />
<input type="hidden" name="name" value="modeling" />
<label>KWL-hgy: <input class="center" type="text" name="qty" value="2" size="3" ></label>
<input type="submit" name="submit" value="Add to cart" />
</form>
<form class="cart_form" >
<input type="hidden" name="order_code" value="KWL-JFE" />
<input type="hidden" name="price" value="12000" />
<input type="hidden" name="name" value="php" />
<label>KWL-JFE: <input class="center" type="text" name="qty" value="1" size="3" ></label>
<input type="submit" name="submit" value="Add to cart" />
</form>
you could do it somehow like this:
$$('form.cart_form').addEvent('submit', function(e){
this.getChildren().each(function(el){
alert(el.get('name') + ': ' + el.get('value'));
});
});
this will fire an event as soon as a form with the class chart_form is submited and loop through all the form's children.
My site was working fine with PayPal's sandbox, and then all of a sudden it stopped.
Now I get the wonderful error Sandbox "Sorry — your last action could not be completed"
This is my HTML:
<body onload="document.Paypal.submit();">
<!-- item_number should get passed back -->
<form name="Paypal" method="post" action="https://www.sandbox.paypal.com cgi-bin/webscr" id="Paypal">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTkyNTEyNzc0NGRk0LKGvSMTla6LgHpbOsdk7iC0iXE=" />
</div>
<div>
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWCALKhatPArLPtrsEAreImG4CweeH+AkCgMPhowcC+NaM4gQC+Y2VqwoCouzSnwEVXI9UvQxqI2UcdQ4SmcSWqfEZNw==" />
</div>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<!-- The following is for itemized PayPal data instead of the aggregated version -->
<input type="hidden" name="item_name_1" value="LEADING SKILLS 4/10/2012 6:00 PM Section: Members " />
<input type="hidden" name="amount_1" value="250.00" />
<input type="hidden" name="quantity_1" value="2" />
<input type="hidden" name="handling_cart" value="7.00" />
<input type="hidden" name="tax_cart" value="35.00" />
<!-- STANDARD DATA -->
<input name="business" type="hidden" id="business" value="paypal#rockclimbing.venueblue.com" />
<input name="invoice" type="hidden" id="invoice" value="TS-1E8B59A0-B" />
<input type="hidden" name="no_note" value="0" />
<input name="currency_code" type="hidden" id="currency_code" value="USD" />
<input name="shipCountry" type="hidden" id="shipCountry" />
<input type="hidden" name="return" value="http://rockclimbing.venueblue.com/Gateway/paypal/Complete.aspx?id=db86c0bf-beb8-4e37-b495-bed1d3e7e6f3" />
<input name="cancel_returnUrl" type="hidden" id="cancel_returnUrl" value="http://rockclimbing.venueblue.com/ShoppingCart.aspx" />
<input type="hidden" name="cn" value="How did you hear about us?" />
<input name="custom" type="hidden" id="custom" value="db86c0bf-beb8-4e37-b495-bed1d3e7e6f3" />
<input name="notify_url" type="hidden" id="notify_url" value="http://rockclimbing.venueblue.com/Gateway/Paypal/IPN.aspx" />
<input type="submit" value="Submit Payment Info" style="display:none;" />
Processing Order....
</form>
</body>
Anyone have a clue what happened?
Well i had the same thing today earlier, I thought i screwed smth up. I was using Opera, then changed to FireFox and there was no such error. then i deleted Browsing history, cookies, cash, everything and the problem disapeared in opera. maybe you could try that too.