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

How to build my own payment provider? #167

Open
koddr opened this issue Feb 7, 2018 · 15 comments
Open

How to build my own payment provider? #167

koddr opened this issue Feb 7, 2018 · 15 comments

Comments

@koddr
Copy link

koddr commented Feb 7, 2018

Hello!

I'm working with specific payment system (only in my country), which not in list of supports by django-payments. Could you please give me simple example or tutorial, how to build provider for my payment system?

Would be great to include any example into docs 👍

@dhruvramdev
Copy link

+1

@maltitco
Copy link

@koddr try to build it on the basis Dummy Payment:
https://github.com/mirumee/django-payments/tree/master/payments/dummy

@melvinkcx
Copy link

+1

@karanrajpal14
Copy link

@maltitco I want to integrate a provider as well but I've got no idea on how to do so. Let's just say I do follow along dummy's implementation but how do I test if it's working or not?

I'm sorry if the question is silly but this will be my first actual contribution and I've got no idea on how to go ahead with it. Would you please help me out?

@maltitco
Copy link

@karanrajpal14 do you have the documentation of the integration of payments from the operator whose payment you want to implement?

@karanrajpal14
Copy link

@maltitco I do. I'm trying to integrate Razorpay because none of the current ones work in India. Here's their python SDK. I want to integrate it into django-payments because saleor relies on it and I don't want to break anything there.

@patrys
Copy link
Contributor

patrys commented May 15, 2018

While I can't advise about Razorpay I know we've successfully used Cybersource before when doing work for Tata Landmark in India.

@karanrajpal14
Copy link

@patrys I wasn't aware of that. The website doesn't say much about India but they do say that they're active in India. I've gotten in touch with them to discuss the pricing model. Let's see how it goes.

Although, I still am curious about adding a payment gateway to this incase cybersource doesn't fly. Any suggestion on how I can get started?

@patrys
Copy link
Contributor

patrys commented May 16, 2018

I'd suggest you take a look at existing payment methods, they all extend the same base class. Feel free to join Saleor's Gitter channel to chat.

@karanrajpal14
Copy link

karanrajpal14 commented May 18, 2018

@patrys I did have a look at them and I want to keep that as reference and integrate something like Razorpay but I'm not sure how. How do I test if it's working as intended?

Also, I have joined the room and posted the question there. Hope someone can help. Thank you for the suggestion :)

@karanrajpal14
Copy link

@maltitco any suggestions?

@MRdevX
Copy link

MRdevX commented May 24, 2018

it's my concern too, any tutorial about how to implement a custom payment method would be great.
i want to add ZarinPal payment gateway.
zarinpal-django-py3-master_1.zip this is their django SDK.

@kuntalk
Copy link

kuntalk commented Aug 7, 2018

Have you succeed in integrating Razorpay in Saleor? @karanrajpal14

@karanrajpal14
Copy link

@Kuntal-KK no but someone else did. Here's a link to the package.

@WhyNotHugo
Copy link
Member

WhyNotHugo commented Jan 18, 2022

This this comment for some guidelines on building a new provider.

I'm sure you'll have more questions after reading that and trying to implement a new provider. Please do leave any questions; I'll use those as a reference for a proper, more detailed, documentation.

@WhyNotHugo WhyNotHugo pinned this issue Feb 2, 2022
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

9 participants