Inquiry Regarding Payroll System Development and Code Sharing

Hello, I am currently in the process of developing a web-based payroll system using PHP to manage the weekly payment transfers for my employees. As part of this development, I have been conducting tests within the sandbox environment provided by your platform.

Up to this point, I have successfully completed the following tasks: creating client profiles, establishing their fund accounts, and initiating fund transfers. However, I am uncertain if these steps alone are sufficient for completing bank deposits. If there are any additional functionalities or steps that I need to implement in order to successfully execute bank deposits, I would greatly appreciate your guidance on this matter.

Furthermore, I would like to inform you that I am planning to share my code for conducting the transfers with my employees. This code will be utilized to facilitate the transfer process efficiently.


DwollaSwagger\Configuration::$access_token = 'fNGm5c7xroX3T5KJbPw1lmNYcsaDpVSKYi5GSYOE4W1VKEtioH';
DwollaSwagger\Configuration::$username = 'Tkg9auUrKZQiKPLtFlgQc3T7yoCo3D2NT1p0ZLsD74obvBvYGU';
DwollaSwagger\Configuration::$password = 'HcsoTCAPeq8snpwlvMcdTOZgRYxWgsQTU0G3ikSZSeJ1uTiQU3';
// For Sandbox
$apiClient = new DwollaSwagger\ApiClient("https://api-sandbox.dwolla.com");
// For production
//$apiClient = new DwollaSwagger\ApiClient("https://api.dwolla.com");


$customersApi = new DwollaSwagger\CustomersApi($apiClient);
$fundingApi = new DwollaSwagger\FundingsourcesApi($apiClient);
$transfersApi = new DwollaSwagger\TransfersApi($apiClient);
$customer = $customersApi->create([
    'firstName' => 'Jose6',
    'lastName' => 'Peres6',
    'dateOfBirth' => '1970-01-06',
    'email' => 'jp@gma.ne6',
    'type' => 'receive-only',
    'businessName' => 'jp6 Corp llc',
  ]);
echo"<pre>";print_r($customer);echo"</pre>";// aqui tengo el url --> $customer respuesta https://api-sandbox.dwolla.com/customers/404b7ffa-b5a8-42c7-9285-9b9e3235a7cb

$fundingSource = $fundingApi->createCustomerFundingSource([
  "routingNumber" => "222222226",
  "accountNumber" => "123456789",
  "bankAccountType" => "checking",
  "name" => "Jane Doe’s Checking"
], "$customer");
echo"<pre>";print_r($fundingSource);echo"</pre>";// respuesta --> https://api-sandbox.dwolla.com/funding-sources/f85bf8ed-6b5b-41e6-a535-df8d52a44019

$retrieved = $fundingApi->id($fundingSource);
echo"<pre>";print_r($retrieved);echo"</pre>";# => 'Test checking account'


$transfer = $transfersApi->create([
  '_links' => [
    'source' => [
      'href' => 'https://api-sandbox.dwolla.com/funding-sources/48c79a16-ffde-4a72-859e-cfffe102531d',
    ],
    'destination' => [
      'href' => "$fundingSource"
    ]
  ],
  'amount' => [
    'currency' => 'USD',
    'value' => '1.00'
  ],
  'metadata' => [
    'paymentId' => '12345678',
    'note' => 'payment for completed work Dec. 1',
  ],
  "clearing" => [
    "source" => "next-available",
    "destination" => "next-available"
  ]
]);
echo"<pre>";print_r($transfer);echo"</pre>";

Additionally, once I have completed all necessary developments and verifications, I intend to proceed with setting up my production account. Any instructions or recommendations you can provide for this process would be invaluable.

Thank you for your assistance and support throughout this endeavor. I look forward to your prompt response.

Best regards,
Abisai Quintanilla

Hi @Abisai_Quintanilla!

In terms of completing bank deposits to your employees created as Customers in your Dwolla platform,. your implementation looks good so far with the right endpoints being used.

Next, in order to go live in Production, there are a few requirements from our team that you would need to complete. Our sales team would be happy to help explain this process and all the requirements. Please feel free to contact our sales team via this form - Transform Your Payments Experience | Dwolla

This topic was automatically closed after 365 days. New replies are no longer allowed.