public function __construct($template_uri, $globals_path, $globals_url, $bill_to_address_country, $bill_to_address_state, $currency, $cybersource_access_key, $cybersource_locale, $cybersource_profile_id, $cybersource_secret_key, $form_post_url, $item_0_name, $item_0_quantity, $item_0_unit_price, $transaction_type) { parent::__construct($template_uri, $globals_path, $globals_url); $this->bill_to_address_country = $bill_to_address_country; $this->bill_to_address_state = $bill_to_address_state; $this->currency = $currency; $this->cybersource_access_key = $cybersource_access_key; $this->cybersource_locale = $cybersource_locale; $this->cybersource_profile_id = $cybersource_profile_id; $this->cybersource_secret_key = $cybersource_secret_key; $this->form_post_url = $form_post_url; $this->item_0_name = $item_0_name; $this->item_0_quantity = $item_0_quantity; $this->item_0_unit_price = $item_0_unit_price; $this->line_item_count = '1'; $this->reference_number = microtime(true); $this->signed_field_names = 'access_key,' . 'bill_to_address_country,' . 'bill_to_address_state,' . 'currency,' . 'item_0_name,' . 'item_0_quantity,' . 'item_0_unit_price,' . 'line_item_count,' . 'locale,' . 'profile_id,' . 'reference_number,' . 'signed_date_time,' . 'signed_field_names,' . 'transaction_type,' . 'transaction_uuid,' . 'unsigned_field_names'; $this->transaction_type = $transaction_type; $this->transaction_uuid = uniqid(); $this->unsigned_field_names = 'merchant_defined_data1,' . 'merchant_defined_data2,' . 'merchant_defined_data3,' . 'merchant_defined_data4'; $this->generate_signature(); }
public function __construct($template_uri, $form_post_url) { parent::__construct($template_uri); $this->form_post_url = $form_post_url; }