duitkupg / duitku-php

24 stars 10 forks source link

For createInvoice, please make email parameter optional #1

Open erikdemarco opened 2 years ago

erikdemarco commented 2 years ago

When we want to create invoice via https://api-sandbox.duitku.com/api/merchant/createInvoice

Based on this docs: https://docs.duitku.com/pop/id/#create-invoice We required to send email parameter as well. So website which not use email for their platform cant use it. I also compare this implementation with other payment gateway, Most payment gateway I tested will not require email and phone. For example look at midtrans api (I think they have very good implementation of backend API): https://snap-docs.midtrans.com/#request-body-json-parameter

They only require, order_id & payment amount.

easten20 commented 2 years ago

Hi @erikdemarco thank you for your feedback. The parameters are mandatory for some of our major payment channels (E-Money, CreditCard, etc). However, we already bring up your input to our development team, one idea for future development is to let user fill in the parameters (phonenumber, email) on the payment page instead of the API.

Best regards,

erikdemarco commented 2 years ago

"one idea for future development is to let user fill in the parameters (phonenumber, email) on the payment page instead of the API."

Please dont do that. It will bring duitku back in time. More and more payment gateway make the checkout field simpler. Look xendit and doku. They only have cc#, cc expiry, cvv for cc checkout page. Stripe even more bold. Their cc checkout page only need cc# and cc expiry without cvv. Xendit is in the middle redesigning their checkout interface as well to make it simple.