paypal - What is the payza equivalent php code for this snippet? -


below code use process payment in site. cart has 1 item. code paypal. want sell same item on payza.

 //process order paypal        // prepare data             $query = array();             $query['notify_url'] = 'http://mywebsite.com/ipn.php';             $query['cmd'] = '_cart';             $query['upload'] = '1';             $query['business'] = 'payment@mywebsite.com';                 //main item             $query['item_name_1'] = $item_name;             $query['item_number_1'] = '1';             $query['amount_1'] = $item_price;                                        $query['currency_code'] = "usd";              // prepare query string             $query_string = http_build_query($query);           header('location: https://paypal.com/cgi-bin/webscr?' . $query_string); 

<form method="post" action="https://secure.payza.com/checkout"> <input type="image" name="checkout" src="btn_buynow.gif" /> <input type="hidden" name="ap_merchant" value="payza_email"/> <input type="hidden" name="ap_purchasetype" value="item"/> <input type="hidden" name="ap_itemname" value="sitename"/>           <input type="hidden" name="ap_itemcode" value="row->id"/> <input type="hidden" name="ap_description" value="item1_desc"/> <input type="hidden" name="ap_amount" value="amt"/> <input type="hidden" name="ap_currency" value="currency_code"/> <input type="hidden" name="ap_returnurl" value="returnurl"/> <input type="hidden" name="ap_cancelurl" value="cancelurl"/> </form> 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -