Skip to main content

Set partner

Last updated: 06-Apr-2017
Rate this article:


Set the partner for the current shopping cart session. It's mandatory to set the partner for the current cart session to use all Channel Manager methods with the exception of logingetPartnerByCode, getPartnerSingleSignOn and searchPartners.


Parameter Type/Description
sessionID Required (string)
  Session identifier, output of the Login method. An exception will be thrown if the values are incorrect.
partnerCode Required (string)
  Unique identifier that you need to specify when creating a partner in the Control Panel. You can find it under the General Information area when editing partner details.


Parameter Type/Description
Result Boolean
  True or false



require ('PATH_TO_AUTH'); // Authentication example: 

$partnerCode = 'YOUR_PARTNER_CODE';

$jsonRpcRequest = array (
'jsonrpc' => '2.0',
'id' => $i++,
'method' => 'setPartner',
'params' => array($sessionID, $partnerCode)

var_dump (callRPC((Object)$jsonRpcRequest, $host));


Error Description


Partner code is mandatory.


Provided partner code is not associated with an active partner account in the Avangate system.


Rate this article:

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo