# Payment Gateway Error

**URL:** <https://discuss.dwolla.com/t/payment-gateway-error/6001>\
**Category:** Funding Sources\
**Created:** [July 22, 2020, 6:39am UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001 "2020-07-22T06:39:05Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 10, 2020, 7:27am UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/21 "2020-08-10T07:27:07Z")

</div>

Can you please update or we can set up a call for complete it please.

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 10, 2020, 12:29pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/22 "2020-08-10T12:29:12Z")

</div>

Hi,

Can we connect over zoom call or something or sort the payment gateway issue  
As my client wants this setup to be done asap.

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [August 10, 2020, 1:46pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/23 "2020-08-10T13:46:41Z")

</div>

Hi @Sourabh_Kasliwal – We can provide help through community forums. The answer to the initial `Payment gateway error` was posted here - [Payment Gateway Error - #4 by shreya](https://discuss.dwolla.com/t/payment-gateway-error/6001/4)

If you have any questions, feel free to post them here!

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 10, 2020, 2:05pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/24 "2020-08-10T14:05:19Z")

</div>

[content\_type] =\> application/vnd.dwolla.v1.hal+json; profile=“[http://nocarrier.co.uk/profiles/vnd.error/](http://nocarrier.co.uk/profiles/vnd.error/)”

What is this error for?

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [August 10, 2020, 2:11pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/25 "2020-08-10T14:11:01Z")

</div>

The `vnd.error` is just a response type indicating that the response was an error. Are you able to extract the error message from the response body?

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 11, 2020, 11:39am UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/26 "2020-08-11T11:39:13Z")

</div>

No error message is coming

 ![image_2020_08_11T09_53_30_660Z.png](https://global.discourse-cdn.com/dwolla/original/2X/b/b36f67e732ded50bdbd8f655a0b1bbb9a440991e.png)

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 12, 2020, 1:18pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/27 "2020-08-12T13:18:04Z")

</div>

Can you please update?

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [August 12, 2020, 7:47pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/28 "2020-08-12T19:47:21Z")

</div>

Hi @Sourabh_Kasliwal – are you using our PHP SDK by any chance? If so, you can capture the error message by following this post -

> [@ApiException in ApiClient.php line 315: \[400\] Error connecting to the API (https://api-sandbox.dwolla.com/customers)](https://discuss.dwolla.com/t/apiexception-in-apiclient-php-line-315-400-error-connecting-to-the-api-https-api-sandbox-dwolla-com-customers/5182/5):
>
> Hi @shreyas.p, You should be able to catch the error and get the JSON response-body. You can try wrapping the request in a try/catch and display the error response by calling the getResponseBody() method. Example: try{ $new\_customer = $customersApi-\>create([//request\_body]); } catch (Exception $e) { echo 'Caught exception: ', $e-\>getResponseBody(), "\n"; }

Meanwhile, I can try to dig up this request and what’s returned in the error response. Is this in Sandbox? Do you have any IDs you could share that are related to your account so that I can locate it?

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 14, 2020, 7:49am UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/29 "2020-08-14T07:49:45Z")

</div>

How can I get paid support from Dwolla technical team?

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 14, 2020, 7:51am UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/30 "2020-08-14T07:51:12Z")

</div>

Tried stil same error  
[https://entworld.fans/transfercreatephp](https://entworld.fans/transfercreatephp)

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 14, 2020, 9:12am UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/31 "2020-08-14T09:12:51Z")

</div>

Getting this error when customer is sending money to main account

{“code”:“ValidationError”,“message”:“Validation error(s) present. See embedded errors list for more details.”,"\_embedded":{“errors”:[{“code”:“Restricted”,“message”:“Sender restricted.”,“path”:"/\_links/source/href","\_links":{}}]}}

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [August 14, 2020, 1:49pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/32 "2020-08-14T13:49:56Z")

</div>

Hi @Sourabh_Kasliwal – dedicated support throughout your integration, as well as after you go live, along with other benefits is available in the [Scale plan](https://www.dwolla.com/pricing/). Let me know if you’d like to get in touch with our Sales Development team and I can our team member to contact you!

As for that error, it looks like the source Customer is not in state that allows them to create transfers. If they are a Verified Customer type, I’d check to see if they’re fully verified and eligible to send funds. Here’s an [FAQ](https://developers.dwolla.com/guides/personal-verified-customer/frequently-asked-questions#frequently-asked-questions) on Personal Verified Customers which explains about sending limitations as well.

Would you be able to post the Customer ID here and I can take a look?

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 14, 2020, 2:15pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/33 "2020-08-14T14:15:15Z")

</div>

Let me go through plans and update you

---

<div class="post-metadata">

**Author:** ![Sourabh\_Kasliwal](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/sourabh_kasliwal/32/2564_2.png) [@Sourabh\_Kasliwal](https://discuss.dwolla.com/u/Sourabh_Kasliwal)\
**Post date:** [August 25, 2020, 11:49am UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/34 "2020-08-25T11:49:23Z")

</div>

Hi

Where can I find the PHP code to generate access token?  
I have seen node code for the same, but any library for file in php to generate access token.

---

<div class="post-metadata">

**Author:** ![spencer](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/spencer/32/2143_2.png) [@spencer](https://discuss.dwolla.com/u/spencer)\
**Post date:** [August 25, 2020, 1:40pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/35 "2020-08-25T13:40:05Z")

</div>

Hi @Sourabh_Kasliwal, Unfortunately the dwolla-swagger-php library does not contain support for token requests out of the box. You would likely need to use a third party REST client for making this call. Here’s an example using Guzzle that I posted in another thread: [PHP SDK, Get Token](https://discuss.dwolla.com/t/php-sdk-get-token/4800/2)

---

<div class="post-metadata">

**Author:** ![shyamsunder.sharma](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@shyamsunder.sharma](https://discuss.dwolla.com/u/shyamsunder.sharma)\
**Post date:** [October 16, 2020, 1:57pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/37 "2020-10-16T13:57:10Z")

</div>

I am getting error while initiate transfer from Postman

[400] Error connecting to the API ([https://api-sandbox.dwolla.com/transfers](https://api-sandbox.dwolla.com/transfers))

is there any other way to initiate transfer using PHP?

 ![Untitled](https://global.discourse-cdn.com/dwolla/original/2X/1/1cf218814e0e1c10572ea505b21218dae797a9ee.png)

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [October 16, 2020, 2:05pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/38 "2020-10-16T14:05:08Z")

</div>

Hi Shyam – would you have the error ID handy that was returned in the response?

---

<div class="post-metadata">

**Author:** ![shyamsunder.sharma](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@shyamsunder.sharma](https://discuss.dwolla.com/u/shyamsunder.sharma)\
**Post date:** [October 16, 2020, 2:10pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/39 "2020-10-16T14:10:20Z")

</div>

yes i am getting this

```
<title>🧨 [400] Error connecting to the API (https://api-sandbox.dwolla.com/transfers)</title>
```

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [October 16, 2020, 2:20pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/40 "2020-10-16T14:20:49Z")

</div>

Gotcha. Anyway you could post the endpoint you’re trying to call? With a Dwolla ID, I can take a look at our logs and find the request.

---

<div class="post-metadata">

**Author:** ![shyamsunder.sharma](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@shyamsunder.sharma](https://discuss.dwolla.com/u/shyamsunder.sharma)\
**Post date:** [October 16, 2020, 2:31pm UTC](https://discuss.dwolla.com/t/payment-gateway-error/6001/41 "2020-10-16T14:31:38Z")

</div>

API NAME:- [https://www.5exceptions.com/allmoney/api/account\_balance](https://www.5exceptions.com/allmoney/api/account_balance)

Dwolla api using in my method…  
$transferApi = new DwollaSwagger\TransfersApi($apiClient);  
$myAccount = $transferApi-\>create($transfer\_request);

if you want anything from my side let me know.

i wait for your reply

[Previous page](https://discuss.dwolla.com/t/payment-gateway-error/6001.md?page=1)

[Next page](https://discuss.dwolla.com/t/payment-gateway-error/6001.md?page=3)
