diff --git a/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php b/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php
index f179ec8aa..5b93fadd8 100644
--- a/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php
+++ b/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php
@@ -750,12 +750,12 @@ protected static function notify_invoice_failed_to_send( $invoice_id, $error ) {
* @return int|WP_Error The customer ID if success; a WP_Error if failure
*/
protected static function probably_get_customer_id( $sponsor, $currency_code ) {
- $customer = self::get_customer( $sponsor['company-name'], $currency_code );
- $customer_id = $customer['Id'];
+ $customer = self::get_customer( $sponsor['company-name'], $currency_code );
if ( is_wp_error( $customer ) || ! $customer ) {
$customer_id = self::create_customer( $sponsor, $currency_code );
} else {
+ $customer_id = $customer['Id'];
self::update_customer( $customer, $sponsor );
}