Find Jobs
Hire Freelancers

Get balance of Paypal account - API

£10-25 GBP

Avslutat
Publicerad nästan sex år sedan

£10-25 GBP

Betalning vid leverans
I want a webpage where I can view more that 1 paypal account balance on line this must use paypal API get balance eg. <?php class Paypal { /** * API Version */ const VERSION = 51.0; /** * List of valid API environments * @var array */ private $allowedEnvs = array( 'beta-sandbox', 'live', 'sandbox' ); /** * Config storage from constructor * @var array */ private $config = array(); /** * URL storage based on environment * @var string */ private $url; /** * Build PayPal API request * * @param string $username * @param string $password * @param string $signature * @param string $environment */ public function __construct($username, $password, $signature, $environment = 'live') { if (!in_array($environment, $this->allowedEnvs)) { throw new Exception('Specified environment is not allowed.'); } $this->config = array( 'username' => $username, 'password' => $password, 'signature' => $signature, 'environment' => $environment ); } /** * Make a request to the PayPal API * * @param string $method API method (e.g. GetBalance) * @param array $params Additional fields to send in the request (e.g. array('RETURNALLCURRENCIES' => 1)) * @return array */ public function call($method, array $params = array()) { $fields = $this->encodeFields(array_merge( array( 'METHOD' => $method 'VERSION' => self::VERSION, 'USER' => $this->config['username'], 'PWD' => $this->config['password'], 'SIGNATURE' => $this->config['signature'] ), $params )); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->getUrl()); curl_setopt($ch, CURLOPT_POST, count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($fields)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); if (!$response) { throw new Exception('Failed to contact PayPal API: ' . curl_error($ch) . ' (Error No. ' . curl_errno($ch) . ')'); } curl_close($ch); parse_str($response, $result); return $this->decodeFields($result); } /** * Prepare fields for API * * @param array $fields * @return array */ private function encodeFields(array $fields) { return array_map('urlencode', $fields); } /** * Make response readable * * @param array $fields * @return array */ private function decodeFields(array $fields) { return array_map('urldecode', $fields); } /** * Get API url based on environment * * @return string */ private function getUrl() { if (is_null($this->url)) { switch ($this->config['environment']) { case 'sandbox': case 'beta-sandbox': $this->url = "https://api-3t.$[login to view URL]"; break; default: $this->url = '[login to view URL]'; } } return $this->url; } }
Project ID: 17272720

Om projektet

14 anbud
Distansprojekt
Senaste aktivitet sex år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
14 frilansar lägger i genomsnitt anbud på £43 GBP för detta uppdrag
Använd avatar
Hi, I am PHP/API/SOAP coder and would like to develope the PHP script for you. As far as I understood you want a website which shows your current paypal ballance. Should this website be secured by password or is it just for internal usage? Sincerely, Ozzy
£28 GBP Om 2 dagar
4,9 (34 omdömen)
5,3
5,3
Använd avatar
Hello Sir, I have more than 8 year experience in web development ,made many website with delivered quality work I am expert in web development . few things that i have , i am very quick learner ,good listener ,and make understanding with whom i am working. I am sure ,i can help you in web development . Looking forward for long term relationship. Please give me chance to working with you. Hope we will work together. Thanks Ricky
£28 GBP Om 1 dag
4,7 (33 omdömen)
5,2
5,2
Använd avatar
Hi! I'm script developer that can retrieve data with automation. Quick Question : - How many accounts are there? Thank you and i'm looking forward to working with you! -Vincent
£25 GBP Om 1 dag
5,0 (21 omdömen)
4,7
4,7
Använd avatar
Hello Respected sir, I read through the project details carefully and I am absolutely sure that I can do the project very easily But I have some questions related to your project Please confirm so we can discuss the details of project and clear the queries first to move forward. Regards...!!
£33 GBP Om 1 dag
5,0 (17 omdömen)
3,5
3,5
Använd avatar
Okay, I have done a similar job to show paypal balance on user account page. But that was quite different, what I did in that project: I used PayPal api to show user's account balance on user's dashboard page, and I think showing a list on a page is not tough, I can do that. Please let me know for further discussion. Thank you.
£28 GBP Om 2 dagar
5,0 (8 omdömen)
2,9
2,9
Använd avatar
I am able to do the project of getting PayPal balance for more than one account
£77 GBP Om 2 dagar
3,6 (4 omdömen)
3,0
3,0
Använd avatar
all i have to do is adjust your code so it displays balance for each account on a roll with the use of @foreach . and modify your functions slightly or add new once for displaying on toll
£21 GBP Om 10 dagar
0,0 (0 omdömen)
0,0
0,0

Om kunden

Flagga för UNITED KINGDOM
Manchester, United Kingdom
5,0
30
Verifierad betalningsmetod
Medlem sedan maj 31, 2017

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.