Closed hanprat closed 3 years ago
hi @hanprat , great questions
EWallet.createPayment()
is our old eWallet API we built back in 2019 https://developers.xendit.co/api-reference/ewallets/create-payment/#2020-02-01, in which only support OVO
, LinkAja
, and DANA
EWallet.createEWalletCharge()
is the latest eWallet API we built in 2021 https://developers.xendit.co/api-reference/#ewallets. We solved bunch of inconsistencies problems from previous API and we added most requested channels here such as Shopeepay
(Indonesia) and Paymaya
, Gcash
, Grabpay
(Philippines)Our official recommendations:
EWallet.createEWalletCharge()
to future-proof your integration. Future ewallets features will only be available in EWallet.createEWalletCharge()
Regarding DANA's Proceed to pay
experience, yes it's intended to behave the way you are seeing right now. Proceed to pay
is a test-mode feature to replicate your customer's behavior to pay using DANA
Glad you ask to clarify. Teaser: Our ewallet team is planning to drop support safely for EWallet.createPayment()
. As soon as they have published the deprecation plan, we'll add the deprecation note here for discoverability
Let me know if this answer your questions or not :)
thanks @luminto17 for the explanation.
I can see why the readme change from createPayment()
to createEWalletCharge()
. Was using createPayment()
for several months, and last few days can't find the doc/reference.
Hi, @luminto17 In testing-mode, does your system still hit the callback URL for ewallet charge?
I can test the success payload in dashboard setting of eWallet Paid
. But, how to test the non-success payload?
hi @hanprat absolutely, you can test negative scenarios here using these input https://docs.xendit.co/ewallet/integrations/test-scenarios
What is the difference between
EWallet.createPayment()
andEWallet.createEWalletCharge()
?I've try DANA with
createPayment()
and withcreateEWalletCharge()
too. Both have different flow. UsingcreatePayment()
, I can test with the "real" flow (pages in DANA for topup). But, usingcreateEWalletCharge()
the url-redirection is just a simple page with button "Proceed to pay" and when it's clicked saying something like "test is done". Is it supposed to be different in testing?With
createPayment()
I can set the callback url, but where to set the callback url when usingcreateEWalletCharge()
?