How to build my own payment provider?
koddr opened this issue · 15 comments
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 👍
+1
@koddr try to build it on the basis Dummy Payment:
https://github.com/mirumee/django-payments/tree/master/payments/dummy
+1
@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?
@karanrajpal14 do you have the documentation of the integration of payments from the operator whose payment you want to implement?
While I can't advise about Razorpay I know we've successfully used Cybersource before when doing work for Tata Landmark in India.
@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?
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.
@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 :)
@maltitco any suggestions?
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.
Have you succeed in integrating Razorpay in Saleor? @karanrajpal14
@Kuntal-KK no but someone else did. Here's a link to the package.
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.