Confirm payment for Proforma Invoices
Requirements
Request parameters
Parameter
Type / Description
Request sample
<?php
require ('PATH_TO_AUTH'); // Authentication example: https://knowledgecenter.2checkout.com/Integration/07Channel_Manager_API/SOAP/02Authentication
require ('PATH_TO_SET_PARTNER'); // setPartner example: https://knowledgecenter.2checkout.com/Integration/07Channel_Manager_API/SOAP/06Reference/00Partner/00Set_partner
$partnerCode = 'partner_code'; // direct
try {
$setPartner = $client->setPartner($sessionID, $partnerCode);
var_dump($setPartner);
} catch (SoapFault $e) {
echo "<pre>";
echo $e->xdebug_message;
echo $e->getMessage();
}
$proformaNo = '6';
try {
$setProforma = $client->setProforma($sessionID, $proformaNo);
var_dump($setProforma);
} catch (SoapFault $e) {
echo "<pre>";
echo $e->getMessage();
}
try {
$confirmInvoicePayment = $client->confirmInvoicePayment($sessionID);
var_dump($confirmInvoicePayment);
} catch (SoapFault $e) {
echo $e->getMessage();
}Response parameters
Type
Description
Error messages
Error code
Error description
Last updated
Was this helpful?