Reply
Member
Posts: 3
Registered: ‎06-07-2011

getPaymentProfileId()

getPaymentProfileId() seems to work here ($i_pmid has a number bigger than 0)

        $obj_custprof   = $obj_auth->getCustomerProfile($i_ccid);
        $i_pmid         = $obj_custprof->getPaymentProfileId();

 

getPaymentProfileId() DOES NOT seem to work here ($i_pmid is 0)

        $obj_obj = $obj_auth->createCustomerProfile($obj_custprof);
         $i_pmid = $obj_obj->getPaymentProfileId();

 

Any way to getPaymentProfileId when the customer profile is created? or do I have create it and then call getCustomerProfile($i_ccid)?

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: getPaymentProfileId()

createCustomerProfile return customerPaymentProfileIdList an array of paymentprofile ids.