Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST]PhonePe Payment Gateway Integration #667

Open
divyanshluthra opened this issue Nov 13, 2024 · 14 comments
Open

[FEATURE REQUEST]PhonePe Payment Gateway Integration #667

divyanshluthra opened this issue Nov 13, 2024 · 14 comments
Assignees

Comments

@divyanshluthra
Copy link

Is your feature request related to a problem? Please describe.
I am finding it difficult to integrate the phonepe payment gateway as it's very unlike the sample stripe payment gateway given in the docs. Here's a developer link to phonepe payment gateway: https://developer.phonepe.com/v1/reference/pay-api-1

Describe the solution you'd like
I'd like a simple solution for it's integration, wherein I just have to enter the credentials in the admin console.

Describe alternatives you've considered
I have no other alternatives as of now.

Additional context
Add any other context or screenshots about the feature request here.

@dheeth
Copy link

dheeth commented Nov 15, 2024

Hi @divyanshluthra We have successfully integrated Razorpay with Evershop instead of PhonePe. If you are interested in that let me know

@divyanshluthra
Copy link
Author

divyanshluthra commented Nov 15, 2024

Well, I have applied for razorpay PG approval now, I cant say whether they will approve or not. but I already have approval from PhonePe PG and the credentials as well. I have been trying to replicate it in a way stripe has been integrated but I am facing many challenges. I was able to replicate the COD by creating a new extension. but when I try to replicate stripe code in the extension with modifications, the flow of execution just doesnt go to the extension middlewares after clicking 'Place Order'. I was able to register the payment method, but I have no clue where to place the phonepe api code as I am unaware of the flow.

@dheeth
Copy link

dheeth commented Nov 18, 2024

I can help you with this, let me know where you are facing the issue in integration @divyanshluthra
You can send me an email on [email protected]

@ankitmishra321
Copy link

Hi I am also trying to integrate phonepe payment gateway in evershop, I have written the code but not sure why it's not being displayed in the admin console. could you guys can help me with this?

@leandrosantoss
Copy link

@ankitmishra321

You need to create this component inside the specific folder. Did you create?

image

@ankitmishra321
Copy link

leandrosantoss

I have created a module named ponepe inside modules,
image

@ankitmishra321
Copy link

@leandrosantoss Actually I am not able to figure out how the payment setting in the admin section identifies the payment gateways, if you can help me to just display Phonepe there in the payment setting I can continue from there

@divyanshluthra
Copy link
Author

@ankitmishra321 i was able to modify razorpay integration which is already available on the web, but not phonepe. If you can apply for razor pay pg it would be good.

@ankitmishra321
Copy link

@divyanshluthra, please help me know how it identifies the payment gateway module. This will be helpful for me, actually the code that I am writing in my module it is not reflecting in the payment setting on admin neither on the payment options.

@divyanshluthra
Copy link
Author

@ankitmishra321 did you see the evershop tutorial on how to add an extension? In that, there is an explanation on how to register the extension, and by following that I was able to make phonepe PG atleast appear in the payment options. The payment method needs to be registered first before execution of middleware code which shows all the available payment methods. It has to do with naming the PG's jsx file(if i remember correctly) followed by middleware file name. You can also explore the evershop postgres database, and the table name is public.setting in which the existing payment method related credentials are stored.
I was able to make it appear in the list of payment methods.
But after I got the razorpay credentials, I didn't attempt that. I do understand the code base better than before but I just didn't attempt going further after that initial struggle tbh.

@ankitmishra321
Copy link

@divyanshluthra could you provide me the initial code of the phonepe pg extension. Actually I am struggling with the deadline. It'll be a great help from your side.

@ankitmishra321
Copy link

@divyanshluthra if you can not share the code, then can you please help me with the initial steps like I should be able to display the phonepe in the payment options in the admin setting

@divyanshluthra
Copy link
Author

@ankitmishra321 I don't have the code base for phonepe now as i already removed it from my code. I already gave u the steps and u will have to make an effort and go through the extension creation tutorial and repicate it for the phonepe. The tutorial will help u to add the pg to the list of payment options atleast. That's uptil where I could do with its help.

@ankitmishra321
Copy link

Thanks @divyanshluthra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants