Currency RON not working with PayPal.

Phoca Cart - complex e-commerce extension
Drex
Phoca Member
Phoca Member
Posts: 35
Joined: 04 Nov 2020, 16:39

Currency RON not working with PayPal.

Post by Drex »

Hello,

I deleted the euro currency and created a new one for RON (Romanian Leu). This is the setup:
Image

I tried to place orders both on paypal standard and sandbox mode and get this error:
Image

This is the paypal setup:
Image
Image

Paypal payment worked before with Euro, so its a currency problem but... any idea what is it?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Currency RON not working with PayPal.

Post by Jan »

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
If you find Phoca extensions useful, please support the project
Drex
Phoca Member
Phoca Member
Posts: 35
Joined: 04 Nov 2020, 16:39

Re: Currency RON not working with PayPal.

Post by Drex »

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/
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Currency RON not working with PayPal.

Post by Jan »

Hi, did you try to enable the RON currency for your account? Isn't it listed there? (in options of accepted currencies)

Jan
If you find Phoca extensions useful, please support the project
Drex
Phoca Member
Phoca Member
Posts: 35
Joined: 04 Nov 2020, 16:39

Re: Currency RON not working with PayPal.

Post by Drex »

Jan wrote: 29 Jun 2021, 15:02 Hi, did you try to enable the RON currency for your account? Isn't it listed there? (in options of accepted currencies)

Jan
Doesnt look like it is, only those in the link above appear.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Currency RON not working with PayPal.

Post by Jan »

Hi, it really seems like the RON currency is not supported. :idea:

https://developer.paypal.com/docs/api/r ... ncy-codes/

Jan
If you find Phoca extensions useful, please support the project
Drex
Phoca Member
Phoca Member
Posts: 35
Joined: 04 Nov 2020, 16:39

Re: Currency RON not working with PayPal.

Post by Drex »

Jan wrote: 01 Jul 2021, 22:11 Hi, it really seems like the RON currency is not supported. :idea:

https://developer.paypal.com/docs/api/r ... ncy-codes/

Jan
Do you know if there s any way i can bypass this issue?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Currency RON not working with PayPal.

Post by Jan »

Hi, really no idea, this is maybe much more a question on PayPal support. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply