Internal overhaul of Cart/Checkout and other minor fixes
This commit is contained in:
@@ -18,11 +18,12 @@ class Checkout_Plugin_Paypal_Cart extends Checkout_Plugin_Paypal {
|
||||
public function before(Cart $co) {
|
||||
$output = '';
|
||||
|
||||
$output .= Form::open(sprintf('https://%s/cgi-bin/webscr',$this->test_mode ? $this->url_test : $this->url_prod),array('method'=>'POST'));
|
||||
|
||||
$output .= View::factory('checkout/plugin/paypal/before')
|
||||
->set('checkout',$this->co)
|
||||
->set('cart',$co);
|
||||
|
||||
$output .= Form::open(sprintf('https://%s/cgi-bin/webscr',$this->test_mode ? $this->url_test : $this->url_prod),array('method'=>'POST'));
|
||||
$output .= Form::hidden('cmd','_cart');
|
||||
$output .= Form::hidden('business',$this->test_mode ? 'deon_1260578114_biz@graytech.net.au' : 'deon@graytech.net.au');
|
||||
$output .= Form::hidden('bn','Graytech_BuyNow_WPS_AU');
|
||||
@@ -46,7 +47,6 @@ class Checkout_Plugin_Paypal_Cart extends Checkout_Plugin_Paypal {
|
||||
$output .= Form::hidden('item_name_'.$c,'Paypal Fee');
|
||||
$output .= Form::hidden('amount_'.$c,$this->co->fee($co->total()));
|
||||
|
||||
$output .= Form::submit('submit','Pay Now');
|
||||
$output .= Form::close();
|
||||
|
||||
return $output;
|
||||
|
Reference in New Issue
Block a user