Guest User

Untitled

a guest
Nov 19th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $ch2 = curl_init();
  2. curl_setopt($ch2, CURLOPT_URL, "https://api.paypal.com/v1/checkout/orders/order_id_here");
  3.  
  4.  
  5. curl_setopt($ch2, CURLOPT_POSTFIELDS, $data);
  6. curl_setopt($ch2, CURLOPT_HTTPHEADER, array(
  7. "Content-Type: application/json",
  8. "Authorization: Bearer ".$json->access_token,
  9. "Content-length: ".strlen($data))
  10. );
  11.  
  12. $result = curl_exec($ch2);
Add Comment
Please, Sign In to add comment