Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $paypal_product['items'][] = array(.....);
  2.  
  3. foreach($_POST['item_name'] as $key=>$itmname)
  4. {
  5. //create items for session
  6. $paypal_product['items'][] = array(
  7.  
  8. 'itm_name'=>$_POST["item_name"][$key],
  9. 'itm_price'=>$_POST["amount"][$key],
  10. 'itm_code'=>$_POST['item_code'][$key],
  11. 'itm_qty'=>$_POST['quantity'][$key],
  12. 'itm_type'=>$_POST['productType'][$key],
  13. 'itm_desc'=>$_POST['description'][$key]
  14. );
  15. }
  16.  
  17. echo "Product Code: " . $paypal_product['itm_code'][0];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement