Difference between revisions of "Offerit API Approve Transaction"
From Offerit
OfferitJames (talk | contribs) (Created page with "{{Offerit Manual | show_api_admin_section = true }} This function allows you to approve a specific transaction for a customer. To use this function, you must make a SOAP call wit...") |
OfferitMegan (talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
* '''transid''' - The transaction ID of the sale | * '''transid''' - The transaction ID of the sale | ||
* '''customerid''' - The customer ID of the sale | * '''customerid''' - The customer ID of the sale | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== NuSOAP Example == | == NuSOAP Example == | ||
− | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]] | + | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]]: |
<pre> | <pre> | ||
Line 40: | Line 17: | ||
); | ); | ||
− | $result = $client->call('approve_transaction', | + | $result = $client->call('approve_transaction', $values, 'offeritapiadmin_wsdl'); |
</pre> | </pre> | ||
− | == Sample Output == | + | === Sample Output === |
<pre> | <pre> | ||
Line 52: | Line 29: | ||
ERROR: error message | ERROR: error message | ||
</pre> | </pre> | ||
− | |||
− |
Latest revision as of 13:51, 1 February 2013
This function allows you to approve a specific transaction for a customer. To use this function, you must make a SOAP call with the following parameters:
- transid - The transaction ID of the sale
- customerid - The customer ID of the sale
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array( 'transid' => 265, 'customerid' => 130 ); $result = $client->call('approve_transaction', $values, 'offeritapiadmin_wsdl');
Sample Output
on success: SUCCESS on error: ERROR: error message