You are here

public function CustomerHandlerInterface::buildCustomer in Mailchimp E-Commerce 8

Saves the customer locally and returns customer data formatted for use with Mailchimp.

Parameters

array $customer: The customer.

object $billing_profile: The Drupal Commerce Billing Profile.

Return value

array

Array of customer data.

1 method overrides CustomerHandlerInterface::buildCustomer()
CustomerHandler::buildCustomer in src/CustomerHandler.php
@inheritdoc

File

src/CustomerHandlerInterface.php, line 63

Class

CustomerHandlerInterface
Interface for the Customer handler.

Namespace

Drupal\mailchimp_ecommerce

Code

public function buildCustomer($customer, $billing_profile);