I am using the Magento APIs to build a custom store. I am able to create a shopping cart and add a product to the cart and set shipping and billing addresses. I have configured Authorize.net as the payment method in the Magento Admin backend. I am able to get the listing the payment method list API call as well. I'm trying to handle the whole shopping to checkout to payment using my custom built store instead of using Magento Go's store.
The payment method that I get in the response is pbridge_authorizenet
. Next, when I use the payment set method to apply the payment method to the cart I am getting the following error
Please specify the payment information and submit it.
In the Magento admin, Authorize.net the Test
option is switched on.
Any help is highly appreciated. Let me know if you need any additional details. Thanks
Update
This is the request for the cart_payment.method
API call
<?xml version="1.0"?>
<methodCall>
<methodName>call</methodName>
<params>
<param>
<value>
<string>c07eff7df85103344b47b4292698aaf9</string>
</value>
</param>
<param>
<value>
<string>cart_payment.method</string>
</value>
</param>
<param>
<value>
<array>
<data>
<value>
<int>211</int>
</value>
<value>
<struct>
<member>
<name>po_number</name>
<value>
<string>1234</string>
</value>
</member>
<member>
<name>cc_cid</name>
<value>
<string>234</string>
</value>
</member>
<member>
<name>cc_owner</name>
<value>
<string>Debjeet</string>
</value>
</member>
<member>
<name>cc_number</name>
<value>
<string>4007000000027</string>
</value>
</member>
<member>
<name>cc_type</name>
<value>
<string>VI</string>
</value>
</member>
<member>
<name>cc_exp_year</name>
<value>
<int>2018</int>
</value>
</member>
<member>
<name>cc_exp_month</name>
<value>
<int>4</int>
</value>
</member>
<member>
<name>method</name>
<value>
<string>pbridge_authorizenet</string>
</value>
</member>
</struct>
</value>
</data>
</array>
</value>
</param>
</params>
</methodCall>
This is the response for the cart_payment.method
API call
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value>
<int>1075</int>
</value>
</member>
<member>
<name>faultString</name>
<value>
<string>Please specify the payment infor
mation and submit it.</string>
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>