<p>For those interested, here was the solution: The payment method for Authorize.net wasn't completely filled in; there was no endpoint set. Thus, it was of course failing when it sent the curl request, because there was no protocol, domain, or anything else other than the query string for the payment form.</p>

<p>Providing the payment method with an endpoint in the CP resolved this issue.</p>

CC BY-SA 3.0
2017-04-04T15:06:33.537Z
2017-04-05T14:15:39.433Z
2017-04-05T14:15:39.433Z
Taylor Daughtry
<p>I'm submitting a payment form via standard POST submission (not AJAX) to the current page URL, with an action value of <code>commerce/payments/pay</code>. To double-check my work, I've also copy + pasted their <a href="https://craftcommerce.com/docs/payment-form-model" rel="nofollow noreferrer">example form</a>, and I'm still getting the same result.</p>

<p>I've done this a thousand times before, so I'm going a bit crazy trying to figure out what's different in this project. Any help is greatly appreciated!</p>

<plugin-craftcommerce><ecommerce><payment-methods>
Payment form submission is returning a curl error! ([curl] 3: <url> malformed [url])
# Payment form submission is returning a curl error! ([curl] 3: <url> malformed [url])

(Asked by: username_0 on 2017-04-04)

I'm submitting a payment form via standard POST submission (not AJAX) to the current page URL, with an action value of `commerce/payments/pay`. To double-check my work, I've also copy + pasted their [example form](https://craftcommerce.com/docs/payment-form-model), and I'm still getting the same result.

I've done this a thousand times before, so I'm going a bit crazy trying to figure out what's different in this project. Any help is greatly appreciated!

**Tags:** plugin-craftcommerce, ecommerce, payment-methods


---

## 1 answers

### Answer by username_0 on 2017-04-04. Score: 1 | Accepted answer

For those interested, here was the solution: The payment method for Authorize.net wasn't completely filled in; there was no endpoint set. Thus, it was of course failing when it sent the curl request, because there was no protocol, domain, or anything else other than the query string for the payment form.

Providing the payment method with an endpoint in the CP resolved this issue.


---

