/**
  * When a user returns from the server after making a payment, update their account,
  * close the PayPal iframe & redirect to the installation page for the plugin they
  * just purchased.
  *
  * @param string $product_slug the slug of the product just purchased
  */
 protected static function paid($product_slug)
 {
     check_admin_referer('sputnik_install-plugin_' . $product_slug);
     // Update Sputnik account to include newly purchased plugin
     Sputnik::update_account();
     $install_url = self::build_url(array('install' => $product_slug));
     $install_url = add_query_arg('_wpnonce', wp_create_nonce('sputnik_install-plugin_' . $product_slug), $install_url);
     $install_url = esc_url(add_query_arg(array('TB_iframe' => true), $install_url));
     self::iframe_closer(self::build_url(array('run-installer' => urlencode($install_url))), __('Installing ... ', 'wpsc'));
 }