orders->get_order((int)$order_id); $purchases = $this->orders->get_purchases(array('order_id'=>intval($order->id))); $payment_method = $this->payment->get_payment_method($order->payment_method_id); $currency = $this->money->get_currency(intval($payment_method->currency_id)); $payment_settings = $this->payment->get_payment_settings($payment_method->id); if($payment_settings['mode'] == 'sandbox') $paypal_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"; else $paypal_url = "https://www.paypal.com/cgi-bin/webscr"; $ipn_url = $this->config->root_url.'/payment/Paypal/callback.php'; $success_url = $this->config->root_url.'/order/'.$order->url; $fail_url = $this->config->root_url.'/order/'.$order->url; $button = "
"; return $button; } }