Closed zekylaf closed 8 years ago
Hi @zekylaf,
Can you provide the request information?
Thanks
Yes. I am using this code:
use Uphold\UpholdClient as Client;
$usertoken = 'xxxxxxxxxxx';
$cardcurrency = 'USD';
$cardname = 'MyNewCard';
$client = new Client();
$user = $client->getUser($usertoken);
$card = $user->createCard($cardname, $cardcurrency);
return response()->json([$card]); //(I am using laravel)
I was using that without problem, but one day it stop working. Can you help me please?
*UPDATE
I was testing other methods and I found that getRates(); show me this:
[[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]]
But getTotalBalance(); works fine and it show me this:
[{"amount":"19.85","currency":"USD"}]
So, I found that only some methods stop working. I do not know what happened but please, I need help.
Well, I was reading the Uphold Documentation Api for Curl and I found that now you need to create a new card, get the 'id' of the new card, and then, add a "Crypto Address". You can chose among "bitcoin, litecoin" and others.
Look at this: https://uphold.com/en/developer/api/documentation/#create-card-crypto-address
I think you will take your time to update your php api, so I think I will use curl.
Thanks for all!
Hi, I do not know why, but I am getting a different response from Uphold.
When I use createCard() method, I get this response:
[{"params":[],"normalized":[{"available":"0.00","balance":"0.00","currency":"USD"}],"wire":[{"accountName":"UPHOLD LDA","address":{"line1":"Rua Tenente Valadim 284","line2":"4100-476 Porto, Portugal"},"currency":"EUR","bic":"BBPIPTPL","iban":"PT50 0010 0000 5108 8690 0026 9","name":"Banco BPI"},{"accountName":"UPHOLD LDA","address":{"line1":"Rua Tenente Valadim 284","line2":"4100-476 Porto, Portugal"},"bic":"BBPIPTPL","currency":"GBP","iban":"PT50 0010 9999 5108 8690 6028 9","name":"Banco BPI"},{"accountName":"Uphold HQ, Inc.","accountNumber":"1463721","address":{"line1":"900 Broad Street","line2":"Newark, NJ 07102"},"bic":"CNNJUS33","currency":"USD","name":"City National Bank of New Jersey"}]}]
What can I do @nunorafaelrocha ? Thanks