Closed alestor123 closed 1 year ago
I believe there is already support for this, but I have not documented it yet. You should order a pizza from the dominos website using cash as the payment option. Look at the payloads in the console, and see where Cash is used.
I think this would be in the Payment object or the address object under service method.
But you will have to check on the dominos website to confirm.
@RIAEvangelist I think you should document it
@RIAEvangelist How do i put cash on deplivery
I think we can do it by leaving the payments with empty string
I figure this would be simple as doing (the Dominos API already supports it):
const payment = new Payment({ amount: order.amountsBreakdown.customer })
payment.type = 'Cash'
order.payments.push(payment)
Could do some interesting things with that.
@Heath123 I updated your comment. You are 100% correct and I did what you are thinking about. I also reported it to dominos.
I feel the same as you, but none the less I do not want to put that thought out there because that hole goes pretty deep and could result in sad things happening. I like to promote only happy things.
Let's 🍕 for good ok!
Ah, I guess I could give bad people ideas, sorry
@Heath123 NP, I have worked on a lot of security-related stuff including Class 3 medical devices that are permanently implanted in humans' bodies, so seeing these sorts of things comes naturally to me at this point. It took some self-training to make it automatic though. Thanks for being cool with me editing your post.
hey can we have cash on delivery option @RIAEvangelist