function subscriber_info($blog_id) { global $psts; if (!ProSites_Helper_Gateway::is_last_gateway_used($blog_id, self::get_slug())) { return false; } $profile_id = $this->get_profile_id($blog_id); if ($profile_id) { $resArray = $this->tcheckout_get_profile_detail($profile_id); //get user details if ($resArray['response_code'] == 'OK') { echo '<p><strong>' . stripslashes($resArray['sale']['customer']['cardholder_name']) . '</strong><br />'; echo stripslashes($resArray['sale']['customer']['address_1']) . '<br />'; echo stripslashes($resArray['sale']['customer']['city']) . ', ' . stripslashes($resArray['sale']['customer']['state']) . ' ' . stripslashes($resArray['sale']['customer']['zip']) . '<br />'; echo stripslashes($resArray['sale']['customer']['email']) . '</p>'; } } else { if (ProSites_Helper_Gateway::is_only_active(self::get_slug())) { echo '<p>' . __("This site is using an older gateway so their information is not accessible until the next payment comes through.", 'psts') . '</p>'; } } }
function subscriber_info($blog_id) { global $psts; if (!ProSites_Helper_Gateway::is_last_gateway_used($blog_id, self::get_slug())) { return false; } $profile_id = $this->get_profile_id($blog_id); if ($profile_id) { $resArray = PaypalApiHelper::GetRecurringPaymentsProfileDetails($profile_id); //get user details if ($resArray['ACK'] == 'Success' || $resArray['ACK'] == 'SuccessWithWarning') { echo '<p><strong>' . stripslashes($resArray['SUBSCRIBERNAME']) . '</strong><br />'; if (isset($resArray['ACCT'])) { //credit card echo stripslashes($resArray['STREET']) . '<br />'; echo stripslashes($resArray['CITY']) . ', ' . stripslashes($resArray['STATE']) . ' ' . stripslashes($resArray['ZIP']) . '<br />'; echo stripslashes($resArray['COUNTRY']) . '</p>'; echo '<p>' . stripslashes($resArray['EMAIL']) . '</p>'; } } } else { if ($old_info = get_blog_option($blog_id, 'pypl_old_last_info')) { echo '<p>'; if (isset($old_info['first_name'])) { echo '<strong>' . stripslashes($old_info['first_name']) . ' ' . stripslashes($old_info['last_name']) . '</strong>'; } if (isset($old_info['address_street'])) { echo '<br />' . stripslashes($old_info['address_street']); } if (isset($old_info['address_city'])) { echo '<br />' . stripslashes($old_info['address_city']) . ', ' . stripslashes($old_info['address_state']) . ' ' . stripslashes($old_info['address_zip']) . '<br />' . stripslashes($old_info['address_country_code']); } else { echo '<br />' . stripslashes($old_info['residence_country']); } echo '</p>'; if (isset($old_info['payer_email'])) { echo '<p>' . stripslashes($old_info['payer_email']) . '</p>'; } } else { if (ProSites_Helper_Gateway::is_only_active(self::get_slug())) { echo '<p>' . __("This site is using an older gateway so their information is not accessible until the next payment comes through.", 'psts') . '</p>'; } } } }