Chargily / chargily-epay-django

Django Package for Chargily ePay Gateway
https://dev.chargily.com/docs/#/epay-django
MIT License
18 stars 7 forks source link

function based-view to get data from the Django session #5

Open bouchouichaAek opened 1 year ago

bouchouichaAek commented 1 year ago

Hi

I am attempting to integrate the Chargily API into my website developed by Django, How I can integrate the API using function-based-view to get data (mode and amount etc) from the Django session without using the API form?

best regard

tarek-berkane commented 1 year ago

Hello @bouchouichaAek,

I trust you're doing well. To implement a function-based-view in chargily-epay-django, I'd like to suggest taking a closer look at how we've implemented this functionality using class-based-views. Adapting this code to suit your needs shouldn't be too challenging.

you can find here the code source of our class-based-view function.