sailthru/Sailthru_Client.php
public function purchase($email, array $items, $incomplete = null, $message_id = null, array $options = [ ]) {
        $data = $options;
        $data['email'] = $email;
        $data['items'] = $items;
        if (!is_null($incomplete)) {
            $data['incomplete'] = (int) $incomplete;
        }
        if (!is_null($message_id)) {
            $data['message_id'] = $message_id;
        }
        return $this->apiPost('purchase', $data);
    }
public function purchase($email, array $items, $incomplete = null, $message_id = null, array $options = [ ]) {
        $data = $options;
        $data['email'] = $email;
        $data['items'] = $items;
        if (!is_null($incomplete)) {
            $data['incomplete'] = (int) $incomplete;
        }
        if (!is_null($message_id)) {
            $data['message_id'] = $message_id;
        }
        return $this->apiPost('purchase', $data);
    }
public function purchase ( $ email , array $ items , $ incomplete = null , $ message_id = null , array $ options = [ ] ) { $ data = $ options ; $ data [ 'email' ] = $ email ; $ data [ 'items' ] = $ items ; if ( ! is_null ( $ incomplete ) ) { $ data [ 'incomplete' ] = ( int ) $ incomplete ; } if ( ! is_null ( $ message_id ) ) { $ data [ 'message_id' ] = $ message_id ; } return $ this -> apiPost ( 'purchase' , $ data ) ; }
Record that a user has made a purchase, or has added items to their purchase total.
@link http://docs.sailthru.com/api/purchase
@return array API result
Record that a user has made a purchase or has added items to their purchase total .