PayPal Configuration Problem

Re: PayPal Configuration Problem

by Shriram Joshi -
Number of replies: 7

Hi Emma

Thanks for confirmation.

I got some clue now - about whats going wrong for me..............

When I used to submit for payment, address bar of browser displays one PayPal error code at the end of URL.........

checkout/genericError?code=UEFZRVJfQ0FOTk9UX1BBWQ%3D%3D


I searched through this error code in google.

Then I found below forum link where all people facing similar error from pay pal for various applications they hosted in which currency was not Indian Rs - INR and all of them were having PayPal account in India and all of them trying to get money form their Indian cusotmers only but in USD.

https://github.com/braintree/braintree-android-drop-in/issues/53


This forum implies that there is regulation or restriction in India..........that PayPal can not receive or process any payment from Indian Customers in any other currency other than INR.

This is the reason............PayPal could process your payment in USD since you were not form India. 

But it ultimately rejected my all payments because I was form India.


Even though PayPal has official started with Indian currencies from 1st March 2018 this year, they still seems to be bounded by this regulation act.

So there seems to be no way if i had account of PayPal in India..............I will not be able to accept payment form Indian Customers.

Unless Moodle provides INR currency in PayPal configuration screen.


There is option that I should Create specific payment button in PayPal to accept Indian payment and include the same in my Moodle's course page. This will resolve my problem of getting payment from Indian customers..............but then it will not register user to course.

in fact there is option in configuring this button to specify INP URL which I can do ............but then I need to know the Specific attribute variables that need to pass to that URL.


Does anyone has idea - which Attribute variables get passed through PayPal IPN notification in normal case..........so that same i can try to configure in my custom PayPal button.


Shriram


In reply to Shriram Joshi

Re: PayPal Configuration Problem

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

You could add the INR code to line 39 of enrol/paypal/lib.php to accept Indian Rupees.

   // See https://www.paypal.com/cgi-bin/webscr?cmd=p/sell/mc/mc_intro-outside,
   // 3-character ISO-4217: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_currency_codes

   $codes = array(
            'AUD', 'BRL', 'CAD', 'CHF', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'ILS', 'JPY',
            'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PLN', 'RUB', 'SEK', 'SGD', 'THB', 'TRY', 'TWD', 'USD');


And modify the enrol_page_hook function so Indian users see a INR version.


In reply to Renaat Debleu

Re: PayPal Configuration Problem

by Shriram Joshi -

Dear Renaat........

WOW!!, WOW!!, WOW!!!

It's a Big Big Relief to me today...............................

I could add INR exactly where you specified in file.

Then I changed the default currency in my administration setting of PayPal plugin under enrollments to INR.

Then i changed the Particular Trial Course (TYBcom IT) currency to INR with trail fees of Rs 10.


I logged in to my site with one student account and then tried to pay through PayPal payment option for this trial course.

ALL WENT VERY VERY SMOOTHLY> 

> IT REDIRECTED ME TO PAYPAL ACCOUNT PAGE FO RPAYMENT

> I CHOOSE CREDIT CARD OPTION

> ENTERED CREDIT CARD DETAILS

>ASKED FOR OTP - ENTER SAME

>PAY PAL GIVEN CONFIRMATION PAYMENT SCREEN WITH LINK TO GO BACK TO MERCHANT SITE

>CAME BACK ON MY COURSE SITE WITH DIRECT ACCESS TO COURSE PAGE ITSELF.


FABULOUS!!! AS EXPECTED .................................


It's too good for me since all my courses will be in INR and most of my customers will be in India.

YOU HAVE MADE MY DAY!!!

THANKS A TON!!!!


Only one query - Is it that someone in other country like you peole outside India - evenif they see course fee in Indian Rs ............Still able to pay by clicking on Pay through PayPal button? And i Hope their amount will get deducted in equivalant currenies of their country in their PayPal or Credit/Debit Card and My PayPal accoutn will get credited with Exact INR amount as mentioned on course page.

WIll it be that way only.......I presume it should be.

Because I have not understood your last suggestion on "modify the enrol_page_hook function so Indian users see a INR version" - I could not understood how to modify and what.


But is my above thing is working fine then I may not need to this currency swithover between INR and USD.

But still if you can suggest further - I will definitely will like to give a try.


Thank you once again.....................


Shriram

 


In reply to Shriram Joshi

Re: PayPal Configuration Problem

by Rayson Venture -

You mention in this post that you were able to check out using just a credit card (not using a PayPal account). In my PayPal merchant account I've checked the "PayPal optional" button, but in Moodle users only see the option to pay by credit card. How did you overcome this problem?

In reply to Rayson Venture

Re: PayPal Configuration Problem

by Rayson Venture -

I'm sorry. I made a mistake in my earlier post. I meant to say that users of my Moodle site do not see the option to pay by credit card even though I checked the "Paypal account optional" setting in my merchant account. In your situation, do you see the option to pay by credit card while in Moodle, or do you only see it after the user has been taken to the PayPal site? In my case, I do not see the pay by credit card option anywhere. I've included a couple of screenshots below to demonstrate.


Attachment screenshot_1.png
Attachment screenshot_2.png
In reply to Rayson Venture

Re: PayPal Configuration Problem

by Shriram Joshi -
In reply to Shriram Joshi

Re: PayPal Configuration Problem

by Shriram Joshi -

I suppose, you are missing some setting in PayPal account to allow alternate payment method.

Do check in with PayPal site settings.

It's nothing to do with moodle.


Shriram

In reply to Shriram Joshi

Re: PayPal Configuration Problem

by Shriram Joshi -

Further to my comment above - I got Below confirmation mail from PayPal Technical support team,

"As you rightly mentioned, Indian buyers cannot pay Indian merchants in USD currency. Domestic transactions must be made only in INR currency. We could see that your account is KYC verified and ready to accept domestic payments. In order to resolve the issue, you need to implement a currency switcher in your website which will toggle between INR and USD based on buyer location. If buyer is from India show INR else otherwise."

So PayPal is definatly not supporting Indian customers to apply for my course through PayPal since my own PayPal account is in India.

So only hope of option remains is to get INR currency in Moodle's PayPal Plugin for next version.

Till that time, I will not be able to have online payment in anyway for my courses.

Shriram