Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Probably you could not send the true fields to paypal, following variables as ;</p> <pre><code>$item_name = $product-&gt;model; $item_number = $order['id']; $item_amount = str_replace(',','.', format_number($calculate['total_price'])); # than account information of paypal $paypal_inf = $paypal_-&gt;row(); $paypal_email = $paypal_inf-&gt;paypal_key; $paypal_value = $paypal_inf-&gt;paypal_value; # Url information $return_url = base_url().'tr/odeme/adim_5/paypalsuccess'; $cancel_url = base_url().'tr/odeme/adim_5/paypalfailed'; $notify_url = base_url().'tr/odeme/adim_5/paypal'; # Firstly Append paypal account to querystring $querystring = "?business=".urlencode($paypal_email)."&amp;"; # adding information of following variables at top as you can see $querystring .= "item_number=".urlencode($item_number)."&amp;"; $querystring .= "item_name=".urlencode($item_name)."&amp;"; $querystring .= "amount=".urlencode($item_amount)."&amp;"; # loop for posted values and append to querystring (as address,phone or more detailed informaation) foreach($_POST as $key =&gt; $value){ $value = urlencode(stripslashes($value)); $querystring .= "$key=$value&amp;"; } // Append paypal return addresses $querystring .= "return=".urlencode(stripslashes($return_url))."&amp;"; $querystring .= "cancel_return=".urlencode(stripslashes($cancel_url))."&amp;"; $querystring .= "notify_url=".urlencode($notify_url); # And redirect('https://www.paypal.com/cgi-bin/webscr'. $querystring, 'location', 301); </code></pre> <p>add some fields to form side, following line will receive that </p> <pre><code>echo form_hidden('cmd','_xclick'); echo form_hidden('no_note','1'); echo form_hidden('lc','TR'); echo form_hidden('currency_code',$exchange); echo form_hidden('bn','PP-BuyNowBF:btn_buynow_LG.gif:NonHostedGuest'); </code></pre> <p>if you are using auto redirect, this will help (add your button id which you created on paypal)</p> <pre><code>echo form_hidden('cmd','_s-xclick'); echo form_hidden('hosted_button_id',$paypal_button_id); // for ex. FK5RYJS6WRJVL </code></pre> <p>hope this helps</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload