I am working on a sandbox environment so i just want to know that if i have a mass payment for like $100 and i have $90 in my account so what will happen to mass payment?
Does the customer be paid separately or will the mass payment fail at all?
And my 2nd question is after the mass payment i see all customer payment is pending. How can I assure that the payment is being delivered instead of pending?
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
2
Hi @Usman_Tahir , In this example, is the source of the mass payment a bank account or a Dwolla balance? If it’s a balance, the mass payment creation request will fail to create alogether and the API will return a validation error. If it’s bank sourced and you only have $90 in your bank account, the ACH debit to fund the mass payment will likely fail with an ACH return code (R01 - Insufficient funds).
Pending is a status that exists post creation of the mass payment. Dwolla lumps many statuses into pending which includes the delivery attempt of the payment itself.
Thanks for the reply but my 2nd question is still not answered. How I will come to know that all payments are delivered. Is there a web hook or do I have to keep checking the mass payment id?
What is the way to ensure that the mass payment has delivered his payment to respected customers’ accounts?
Thanks
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
4
Hi @Usman_Tahir , I’d recommend giving this post a read which goes into greater detail on how Mass Payments work. You’re correct with regards to tracking the status of the payment. We always recommend utilizing webhooks as a means to update your app when the state of a resource has changed. You should get webhook when the mass payment is created and completed, as well as when transfers are created from the items within a Mass Payment batch.
Thanks for your time and reply. I really appreciate that.
One last thing is that in my mass payment I can see in my account with the customer that it’s completed and if i click on mass payment id I can see list of all customers for mass payment with status success but when i click on that customer I see status pending.
And is there a way that i can see the error of incuficent balance on dwolla sandbox account ?
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
6
Hi @Usman_Tahir , the Insufficient balance error would be a validation error in the API which means that a Mass Payment would not be created in cases where your Dwolla balance doesn’t have sufficient funds.