jazzband / django-payments

Universal payment handling for Django.
https://django-payments.readthedocs.io
Other
1.07k stars 282 forks source link

How to build my own payment provider? #167

Open koddr opened 6 years ago

koddr commented 6 years ago

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 commented 6 years ago

+1

maltitco commented 6 years ago

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

melvinkcx commented 6 years ago

+1

karanrajpal14 commented 6 years ago

@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 commented 6 years ago

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

karanrajpal14 commented 6 years ago

@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 commented 6 years ago

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

karanrajpal14 commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

@maltitco any suggestions?

MRdevX commented 6 years ago

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 commented 6 years ago

Have you succeed in integrating Razorpay in Saleor? @karanrajpal14

karanrajpal14 commented 6 years ago

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

WhyNotHugo commented 2 years ago

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.