seegno / uphold-sdk-php

Uphold PHP SDK
http://seegno.com
28 stars 24 forks source link

Add create crypto address to card model #136

Closed nunorafaelrocha closed 8 years ago

nunorafaelrocha commented 8 years ago

Uphold API has introduced a (breaking change)[https://uphold.com/en/developer/blog/posts/api-changes/breaking-change-regarding-crypto-addresses-on-uphold-cards] by not adding automatically a crypto address to a new card. This now must be done manually.

This PR adds createCryptoAddress method to Card model and updates it's tests and examples. It also adds addAddress private method so that we can add a new address to the addresses list.