Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. if ($advert_sub == 'paypal') {
  2. $a = array('cmd' => '_xclick',
  3. 'business' => SITE_PAYPAL_EMAIL,
  4. 'currency_code' => SITE_CURRENCY,
  5. 'item_name' => '[Campaign ID: ' . $cid . '] ' . $website_name,
  6. 'amount' => $subtotal,
  7. 'notify_url' => SITE_PAYPAL_CALLBACK_URL,
  8. 'tax_rate' => Utilities::getVAT($subtotal),
  9. 'custom' => serialize(array('cid'=>$cid)),
  10. 'image_url' => SITE_PAYPAL_CHECKOUT_LOGO,
  11. 'cpp_ headerback_ color' => '2687be',
  12. 'no_shipping' => '1',
  13. 'return' => SITE_LOCATION . '?done',
  14. 'cancel_return' => SITE_LOCATION . '?cancelled'
  15. );
  16. $u = 'https://www.paypal.com/cgi-bin/webscr?' . Utilities::arrayToURI($a);
  17. System::redirect($u);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement