Jan wrote: 28 Jun 2021, 15:44
Hi, enable logging in Phoca Cart and see the logs produced by Paypal, there should be some information about the problems. There will be even form displayed which is used by PayPal.
Check if your PayPal can accept RON. Try to even check if PayPal does not support other format like "ROL"
Jan
Hey, thanks for helping, ive enabled loggining but couldnt see anything helpful in System log, this was the message:
Code: Select all
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="phCartPayment" id="phCartPayment" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="business" value="sb-aoonu6099709@business.example.com" />
<input type="hidden" name="item_name" value="Order: 20210000000042" />
<input type="hidden" name="item_name_1" value="GIFT CARD 200RON" />
<input type="hidden" name="item_number_1" value="" />
<input type="hidden" name="amount_1" value="200" />
<input type="hidden" name="quantity_1" value="1" />
<input type="hidden" name="weight_1" value="0.0000" />
<input type="hidden" name="currency_code" value="RON" />
<input type="hidden" name="first_name" value="y" />
<input type="hidden" name="last_name" value="y" />
<input type="hidden" name="address1" value="a" />
<input type="hidden" name="address2" value="" />
<input type="hidden" name="city" value="bucharest" />
<input type="hidden" name="zip" value="06017" />
<input type="hidden" name="country" value="Romania" />
<input type="hidden" name="email" value="alecsandroid@gmail.com" />
<input type="hidden" name="address_override" value="1" />
<input type="hidden" name="invoice" value="20210000000042" />
<input type="hidden" name="charset" value="UTF-8" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="bn" value="PhocaCart_Cart_PPS" />
<input type="hidden" name="custom" value="42" />
<input type="hidden" name="return" value="http://devel2.alphabeta.ro/alex/urzeala/index.php?option=com_phocacart&view=response&task=response.paymentrecieve" />
<input type="hidden" name="notify_url" value="http://devel2.alphabeta.ro/alex/urzeala/index.php?option=com_phocacart&view=response&task=response.paymentnotify&type=paypal_standard&pid=2&tmpl=component" />
<input type="hidden" name="cancel_return" value="http://devel2.alphabeta.ro/alex/urzeala/index.php?option=com_phocacart&view=response&task=response.paymentcancel&type=paypal_standard&mid=1" />
<div class="ph-center">
<div>Your order has been successfully processed, thank you.</div>
<div>You are now being redirected to PayPal</div>
<div class="ph-loader"></div>
<div>If you are not redirected within a few seconds, please
<input type="submit" class="btn btn-primary" value="Click here to be redirected to Paypal" class="button" />
</div>
</div>
</form>, User: Anonymous
But after some research looks like paypal doesnt accept payments in RON, at least i dont think so. I thought paypal just converts any payments to your wallet currency, but looks like its not the case, i guess i'll have to go with stripe or some other payment provider.
https://developer.paypal.com/docs/api/r ... ncy-codes/