Hi Sandeep,

I have used your method and used the following ids :
def index():
    MERCHANT_KEY = "hKiHd2aX"
    key="hKiHd2aX"
    SALT = "byRHoBc0pq"
    PAYU_BASE_URL = "https://sandboxsecure.payu.in/_payment";

The code is working only when MERCHANT_KEY=key. But in your mail it seemed
that MERCHANT_KEY and key are different things. From payumoney I got a
merchant ID (like 6130012), merchant key and a salt.

The test transaction is completing (I am also getting an SMS) and it is
taking me to the success page. But I am getting a ticket in the success
page. And if I click the ticket I am getting a blank page. I cannot figure
out what is wrong.. I have not changed any code I just put the correct IDs
and the name/ email/ phone no. etc. Please help.
And yes, My website is http and not https yet.

[image: image.png]

BR//Arindam




On Sun, Dec 16, 2018 at 8:45 PM sandeep patel <patelsandeep...@gmail.com>
wrote:

> @Lovedie,
> This app generated with python3 so if you are directly installing that app
> from git in your application folder then this will raise an error.
> If you want to use with Python 2.7. these are the following steps.
> 1. Create a new app in your web2py environment.
> 2. Copy index, success, and failure function form git
> <https://github.com/coodblooded/Web2py-PayUmoney/blob/master/controllers/default.py>
> and import also required the library too.
> 3. Downloads
> <https://github.com/coodblooded/Web2py-PayUmoney/tree/master/views/default>
> index, success, and failure file from git and past your /view/default
> folder.
> 4. Change MERCHANT_KEY, Key, SALT with real ids
>
> Now Payment Gateway will work.
>
> Thanks
> Sandeep Patel
>
>
> On Sun, Dec 16, 2018 at 3:32 PM Lovedie JC <lbjc1...@gmail.com> wrote:
>
>> What about python 2.7 compatibility
>>
>> On Sat, 15 Dec 2018 at 15:02, Arindam Dasgupta <nyn.dasgu...@gmail.com>
>> wrote:
>>
>>> Hi sandeep,
>>> At last I have figured it out myself and the python version is now 3.6.0
>>> And after this change your payumoney app is also running. :-)
>>> Thanks.
>>>
>>> [image: image.png]
>>>
>>> On Sat, Dec 15, 2018 at 3:21 PM Arindam Dasgupta <nyn.dasgu...@gmail.com>
>>> wrote:
>>>
>>>> Hi I backed up my apps and clicked on the upgrade button. The result is
>>>> that web2py version got changed to 2.17.2 but python version is still
>>>> 2.7.6. Now how to upgrade to python 3.6.6 Please don't answer my question
>>>> today. Because I know it is too much for today . :-)
>>>>
>>>> [image: image.png]
>>>>
>>>> On Sat, Dec 15, 2018 at 2:35 PM sandeep patel <
>>>> patelsandeep...@gmail.com> wrote:
>>>>
>>>>> Currently, you are using python 2.7.6 and web2py 2.14.6 version.
>>>>> I have tested this app on python3.6.6 and web2py 2.16.1 and 2.17.2.
>>>>>
>>>>> You can upgrade directly by clicking on the button(upgrade new to
>>>>> version 2.17.2).
>>>>> But be careful first take back-up of your apps :)
>>>>>
>>>>> Thanks/
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Dec 15, 2018 at 2:03 PM Arindam Dasgupta <
>>>>> nyn.dasgu...@gmail.com> wrote:
>>>>>
>>>>>> Hi Sandeep,
>>>>>> In my pythonanywhere page I can see the following version . So my
>>>>>> version is 2.7.6 or 2.14.6 ?
>>>>>> Now I am getting a upgrade option here to version 2.17.2 but it is
>>>>>> telling that is is an experimental one. So how do I upgrade it to one of
>>>>>> your version ( 2.16.1 or 2.17.2). And also I I do, then will my existing
>>>>>> apps be still there or I will have to reinstall them?
>>>>>> Sorry If I am asking too much questions. Thanks in advance. :-)
>>>>>>
>>>>>>
>>>>>> [image: image.png]
>>>>>>
>>>>>> On Sat, Dec 15, 2018 at 1:43 PM sandeep patel <
>>>>>> patelsandeep...@gmail.com> wrote:
>>>>>>
>>>>>>> I think this error getting because of version. I have tested on both
>>>>>>> versions 2.16.1 and 2.17.2 that working fine.
>>>>>>> Here is demo <http://13.127.38.120/PayUmoney>
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Dec 15, 2018 at 1:32 PM Arindam Dasgupta <
>>>>>>> nyn.dasgu...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Sandeep,
>>>>>>>>
>>>>>>>> I installed the app in pythonanywhere cloud and tried to view the
>>>>>>>> index.html file. it said :Requires web2py 2.15.5 or newer
>>>>>>>>
>>>>>>>> Then I commented out the below two lines from db.py and tried
>>>>>>>> again. But then it gave errors:
>>>>>>>> if request.global_settings.web2py_version < "2.15.5":
>>>>>>>>   raise HTTP(500, "Requires web2py 2.15.5 or newer")
>>>>>>>>
>>>>>>>> Error ticket for "payumoney"Ticket ID
>>>>>>>>
>>>>>>>>
>>>>>>>> 42.110.131.171.2018-12-15.07-55-13.2cbcd4c5-a853-4a8c-a2d5-e268448066da
>>>>>>>> <type 'exceptions.ValueError'> unsupported pickle protocol: 3
>>>>>>>> Version
>>>>>>>> web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
>>>>>>>> Python Python 2.7.6: /usr/local/bin/uwsgi (prefix: /usr)Traceback
>>>>>>>>
>>>>>>>> 1.
>>>>>>>> 2.
>>>>>>>> 3.
>>>>>>>> 4.
>>>>>>>> 5.
>>>>>>>> 6.
>>>>>>>> 7.
>>>>>>>> 8.
>>>>>>>> 9.
>>>>>>>> 10.
>>>>>>>> 11.
>>>>>>>> 12.
>>>>>>>> 13.
>>>>>>>> 14.
>>>>>>>> 15.
>>>>>>>>
>>>>>>>> Traceback (most recent call last):
>>>>>>>>   File "/home/earinda/FarmFresh/gluon/restricted.py", line 227, in 
>>>>>>>> restricted
>>>>>>>>     exec ccode in environment
>>>>>>>>   File "/home/earinda/FarmFresh/applications/payumoney/models/db.py" 
>>>>>>>> <https://www.pixmate.online/admin/default/edit/payumoney/models/db.py>,
>>>>>>>>  line 95, in <module>
>>>>>>>>     auth.define_tables(username=False, signature=False)
>>>>>>>>   File "/home/earinda/FarmFresh/gluon/tools.py", line 2376, in 
>>>>>>>> define_tables
>>>>>>>>     format='%(first_name)s %(last_name)s (%(id)s)'))
>>>>>>>>   File "/home/earinda/FarmFresh/gluon/packages/dal/pydal/base.py", 
>>>>>>>> line 834, in define_table
>>>>>>>>     table = self.lazy_define_table(tablename,*fields,**args)
>>>>>>>>   File "/home/earinda/FarmFresh/gluon/packages/dal/pydal/base.py", 
>>>>>>>> line 873, in lazy_define_table
>>>>>>>>     polymodel=polymodel)
>>>>>>>>   File 
>>>>>>>> "/home/earinda/FarmFresh/gluon/packages/dal/pydal/adapters/base.py", 
>>>>>>>> line 500, in create_table
>>>>>>>>     sql_fields_old = pickle.load(tfile)
>>>>>>>> ValueError: unsupported pickle protocol: 3
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> How do I get it right?
>>>>>>>>
>>>>>>>> Best Regards,
>>>>>>>> Arindam
>>>>>>>>
>>>>>>>> On Sat, Dec 15, 2018 at 12:34 PM sandeep patel <
>>>>>>>> patelsandeep...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hello All,
>>>>>>>>>
>>>>>>>>> I have customized PayUmoney <https://www.payumoney.com/>python SDK
>>>>>>>>> for the Web2py user. This
>>>>>>>>> <https://github.com/coodblooded/Web2py-PayUmoney>app can in
>>>>>>>>> integrate with any web2py app and customize according to your needs.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Sandeep Patel
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Resources:
>>>>>>>>> - http://web2py.com
>>>>>>>>> - http://web2py.com/book (Documentation)
>>>>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>>>>> ---
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "web2py-users" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>> send an email to web2py+unsubscr...@googlegroups.com.
>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>> --
>>>>>>>> Resources:
>>>>>>>> - http://web2py.com
>>>>>>>> - http://web2py.com/book (Documentation)
>>>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>>>> ---
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "web2py-users" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to web2py+unsubscr...@googlegroups.com.
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>> --
>>>>>>> Resources:
>>>>>>> - http://web2py.com
>>>>>>> - http://web2py.com/book (Documentation)
>>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>>> ---
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "web2py-users" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to web2py+unsubscr...@googlegroups.com.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>> --
>>>>>> Resources:
>>>>>> - http://web2py.com
>>>>>> - http://web2py.com/book (Documentation)
>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "web2py-users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to web2py+unsubscr...@googlegroups.com.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
>>>>> Resources:
>>>>> - http://web2py.com
>>>>> - http://web2py.com/book (Documentation)
>>>>> - http://github.com/web2py/web2py (Source code)
>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "web2py-users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to web2py+unsubscr...@googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to