Skip to content

Commit

Permalink
Payza invoice quantity fix #218
Browse files Browse the repository at this point in the history
  • Loading branch information
4Giedrius committed Jan 9, 2015
1 parent 25e2c26 commit 8e8ec9b
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions src/bb-library/Payment/Adapter/Payza.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,21 +263,21 @@ public function getHtml($api_admin, $invoice_id, $subscription)

} else {
$data = array();
$data['ap_itemname'] = $title;
$data['ap_quantity'] = $number;
//$data['no_shipping'] = '1';
//$data['no_note'] = '1';
$data['ap_currency'] = $invoice['currency'];
//$data['rm'] = '2';
//$data['return'] = $this->config['return_url'];
//$data['cancel_return'] = $this->config['cancel_url'];
//$data['notify_url'] = $this->config['notify_url'];
$data['ap_merchant'] = $this->config['email'];
//$data['cmd'] = '_xclick';
$data['ap_amount'] = $this->moneyFormat($invoice['total'], $invoice['currency']);
$data['ap_taxamount'] = $this->moneyFormat($invoice['tax'], $invoice['currency']);
//$data['bn'] = "PP-BuyNowBF";
//$data['charset'] = "utf-8";
$data['ap_itemname'] = $title;
$data['ap_quantity'] = 1;
//$data['no_shipping'] = '1';
//$data['no_note'] = '1';
$data['ap_currency'] = $invoice['currency'];
//$data['rm'] = '2';
//$data['return'] = $this->config['return_url'];
//$data['cancel_return'] = $this->config['cancel_url'];
//$data['notify_url'] = $this->config['notify_url'];
$data['ap_merchant'] = $this->config['email'];
//$data['cmd'] = '_xclick';
$data['ap_amount'] = $this->moneyFormat($invoice['total'], $invoice['currency']);
$data['ap_taxamount'] = $this->moneyFormat($invoice['tax'], $invoice['currency']);
//$data['bn'] = "PP-BuyNowBF";
//$data['charset'] = "utf-8";
$data['ap_purchasetype'] = "item";
}

Expand All @@ -290,6 +290,9 @@ public function getHtml($api_admin, $invoice_id, $subscription)
return $this->_generateForm($url, $data);
}

/**
* @param string $url
*/
private function _generateForm($url, $data, $method = 'post')
{
$form = '';
Expand Down

0 comments on commit 8e8ec9b

Please sign in to comment.