Innovateninjas / Paws-frontend

A fast responsive webapp that allows you to report injured stray animals to the nearest NGOs.
https://pawss.vercel.app
GNU General Public License v3.0
60 stars 99 forks source link

Donation button is not working #304

Open SaurabhS55 opened 4 months ago

SaurabhS55 commented 4 months ago

Hey @codewarnab, I've checked out your website, and I must say, it's impressive! I appreciate the effort you've put into it. However, I've noticed a bug in donation page. Plzz correct me if I may getting wrong, but upon clicking donate button or any prior buttons of amount, the payment interface is not opening.

screenshots: image

I think there might be some sort of CORS issue or request header issues. So, Can we use payment gateways like stripe or razourpay. I would like to work on this issue. Could you assign this issue to me under GSSOC'24 label?

codewarnab commented 4 months ago

yes we are aware of that issue link doesn't opens in desktop but in phone redirects to UPI app you can intregate razorpay or stripe it will ask for documents i guess ? we didn't explore those alternatives yet if you want you can work on it( comment yes then i will assign you ) after you have integrated the payment gateway console log the payment details after successful payment i will create a separate issue for sending them to backed and storing them

SaurabhS55 commented 4 months ago

Yes

codewarnab commented 4 months ago

okay best of luck also try to avoid conflicts because someone already working on this page #294 you guys may coordinate with each other in discussion

codewarnab commented 4 months ago

@SaurabhS55 whats the update its been a week

SaurabhS55 commented 4 months ago

Actually, last week I had my semester exams. Now, I've started working on it. I just want to ask you, which branch is deployed on production? Is it the main branch or another one? As donate button on footer is missing in main branch code.

image

kaali001 commented 3 months ago

Hey @SaurabhS55 , If you are facing problem we can work together on this issue.

SaurabhS55 commented 3 months ago

Sure we can

SaurabhS55 commented 3 months ago

Ping me on linkedin

codewarnab commented 3 months ago

Actually, last week I had my semester exams. Now, I've started working on it. I just want to ask you, which branch is deployed on production? Is it the main branch or another one? As donate button on footer is missing in main branch code.

image

after login you can see the donation tab

codewarnab commented 3 months ago

@SaurabhS55 whats the update of the payment gateway ?

SaurabhS55 commented 3 months ago

Ok, till now I tried stripe and razourpay, But from Front-end it is only possible to open their payment interface where user can click on donate button and donate money. But donate 100 rs, 200 rs or 500 rs button will not work as we can't call payment intent from Front-end or if we call it will be vulnerable. So, setting money values could be possible from backend only.

SaurabhS55 commented 3 months ago

For testing purpose should I continue with only donate button where payment interface will work independent of app. We just redirecting from donate button to interface for payment. If yes, I will do it within a day and make pr of it for review.

codewarnab commented 3 months ago

For testing purpose should I continue with only donate button where payment interface will work independent of app. We just redirecting from donate button to interface for payment. If yes, I will do it within a day and make pr of it for review.

Yup okay , take your time

SaurabhS55 commented 3 months ago

Hey @codewarnab, I just have made pr of this issue, review it once.