These are chat archives for mirumee/saleor

30th
Oct 2018
AJ
@ajostergaard
Oct 30 2018 07:00 UTC
@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. ;)
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 07:11 UTC
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 UTC
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.
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 07:21 UTC
Thanks
How so?
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 07:30 UTC
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 UTC
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 UTC
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.
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 08:18 UTC
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 UTC
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.
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 08:25 UTC
@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 UTC
Or "$50 COD" :-D
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 08:26 UTC
LOL
jbtw t sucks that Payments have not yet been integrated into the Dashboard
Filip Kucharczyk
@Pacu2
Oct 30 2018 08:35 UTC
Pull requests are welcome :D
saleor217
@saleor217
Oct 30 2018 09:37 UTC
Hi any one used django-material before or used to with tox command.
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 12:05 UTC

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 UTC
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 UTC
@navenprasad You need a custom solution as Saleor does not offer such functionality out of the box
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 15:00 UTC
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 UTC
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
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 18:52 UTC
Hmm. Okay. Fair enough.
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 20:06 UTC
@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 UTC
Yup, that's it
Muhammad Abdullah Abid
@mabdullahabid
Oct 30 2018 20:15 UTC
Sweeeeet
Oleg
@gigimon
Oct 30 2018 20:33 UTC
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 UTC
Check saleor/account/i18n.py file
Specially the last few lines :)
Oleg
@gigimon
Oct 30 2018 20:40 UTC
i saw this but not found a source for cities and postal codes :(
Oleg
@gigimon
Oct 30 2018 20:42 UTC
yes )
after @Pacu2 comment i check file again
thx, will see
Oleg
@gigimon
Oct 30 2018 20:51 UTC
@Pacu2 maybe You know, saleor has a simple way to limit countries? I want only one :)
Filip Kucharczyk
@Pacu2
Oct 30 2018 20:55 UTC
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 UTC
thx, way it's good :)