These are chat archives for mirumee/saleor

30th
Oct 2018
AJ
@ajostergaard
Oct 30 2018 07:00
@wulaaf never thought about COD (no need) but it is in the plan: https://github.com/mirumee/saleor/projects/10#card-11933310. Guessing it's not very high on their list though so if you need it you may need to get coding. ;)
M Abdullah Abid
@wulaaf
Oct 30 2018 07:11
Thought so -__-
The project I’m working on is for Pakistan and credit card penetration rates are still close to 20% for online/ecommerce
COD is the go-to method of payment here
I shall get coding then
AJ
@ajostergaard
Oct 30 2018 07:20
Not sure if it's helpful as there's WAY more than you need but this might be of interest: https://github.com/ajostergaard/django-payments-redsys/blob/master/payments_redsys/__init__.py
What occurs to me is that unless all of your shipping methods are COD by default your life could quickly get complicated.
M Abdullah Abid
@wulaaf
Oct 30 2018 07:21
Thanks
How so?
M Abdullah Abid
@wulaaf
Oct 30 2018 07:30
What occurs to me is that unless all of your shipping methods are COD by default your life could quickly get complicated. You mean hardcoding it?
You mean hardcoding it?*
AJ
@ajostergaard
Oct 30 2018 07:35
I mean that you don't want your buyer selecting COD for payment but a regular non-COD shipping option.
AJ
@ajostergaard
Oct 30 2018 07:40
Actually now that I think about it you'll basically need your payments module to be largely invisible to the user and just triggered by the buyer having selected a COD shipping method so your dev work is really to tweak shipping methods and then more or less skip payment.
M Abdullah Abid
@wulaaf
Oct 30 2018 08:18
I see what you mean. I guess that’s a good short workaround. I’d like to be able to revert back to or add online payment gateways at a later stage so I think its better to actually have it inside Payments.
So not in the mood to decypher django-payments
AJ
@ajostergaard
Oct 30 2018 08:24
I meant 'skip payment' IFF a COD shipping method was selected. What you need is a new shipping method field saying whether it is COD or not.
M Abdullah Abid
@wulaaf
Oct 30 2018 08:25
@ajostergaard yes yes I understand. I could do something like “Free Shipping - COD”, and once customer selects that I could just skip the payment altogether.
AJ
@ajostergaard
Oct 30 2018 08:25
Or "$50 COD" :-D
M Abdullah Abid
@wulaaf
Oct 30 2018 08:26
LOL
jbtw t sucks that Payments have not yet been integrated into the Dashboard
Filip Kucharczyk
@Pacu2
Oct 30 2018 08:35
Pull requests are welcome :D
saleor217
@saleor217
Oct 30 2018 09:37
Hi any one used django-material before or used to with tox command.
M Abdullah Abid
@wulaaf
Oct 30 2018 12:05

send_payment_confirmation celery task being executed twice
Anyone run into this?

When I do PREAUTH and then CAPTURE payment, it calls the celery task twice.

Is it supposed to work like that?
Naven Prasad
@navenprasad
Oct 30 2018 12:40
Hi guys, I'm new to Saleor and I have a project that requires downloading e-Books after purchasing it.
Two questions:
  1. How do I auto fulfil this?
  2. How do I redirect the user who has paid to a download page.
Filip Kucharczyk
@Pacu2
Oct 30 2018 14:43
@navenprasad You need a custom solution as Saleor does not offer such functionality out of the box
M Abdullah Abid
@wulaaf
Oct 30 2018 15:00
Why don’t we get Mark as Paid for transactions which are Waiting for Confirmation?
Is there a way to enable that for all transactions by default regardless of what the Payment Method is?
Mark as Paid shows up only when I create a draft order
Filip Kucharczyk
@Pacu2
Oct 30 2018 16:07
We've decided that you can mark as paid orders without any payments on it, you might want to adjust it to your business logic
M Abdullah Abid
@wulaaf
Oct 30 2018 18:52
Hmm. Okay. Fair enough.
M Abdullah Abid
@wulaaf
Oct 30 2018 20:06
@Pacu2, just for my understanding.
def can_mark_as_paid(self):
return len(self.payments.all()) = 0
If I have a payment that is Payment status.WAITING does that make can_mark_as_paid return False cause status.WAITING still counts as a payment?
Filip Kucharczyk
@Pacu2
Oct 30 2018 20:11
Yup, that's it
M Abdullah Abid
@wulaaf
Oct 30 2018 20:15
Sweeeeet
Oleg
@gigimon
Oct 30 2018 20:33
hi all
maybe someone can help me? I don't understand from when saleor get cities for country and postal code validate rules?
very difficult forms (
Filip Kucharczyk
@Pacu2
Oct 30 2018 20:36
Check saleor/account/i18n.py file
Specially the last few lines :)
Oleg
@gigimon
Oct 30 2018 20:40
i saw this but not found a source for cities and postal codes :(
NyanKiyoshi
@NyanKiyoshi
Oct 30 2018 20:41
Oleg
@gigimon
Oct 30 2018 20:42
yes )
after @Pacu2 comment i check file again
thx, will see
Oleg
@gigimon
Oct 30 2018 20:51
@Pacu2 maybe You know, saleor has a simple way to limit countries? I want only one :)
Filip Kucharczyk
@Pacu2
Oct 30 2018 20:55
There are some settings variables that comes from django-countries package
But can't tell the exact name atm
Oleg
@gigimon
Oct 30 2018 20:57
thx, way it's good :)