I am using PHP to add Cards to a Customer
I have related questions so I have posted them together as (1)(2)(3)
I can use the balanced marketplace to verify that the customer has had each of the cards added to their account. I have no problem adding each card.
(1) When I use the following to get the customer object
$customer = \Balanced\Customer::get("/v1/customers/CU34xY6f9bKZzb0kjBxWTUjC");
var_dump($customer);
It only shows the second card added, however balanced marketplace lists both cards associated with the customer. Why is only one showing up in $customer?
(2) The var_dump($customer) gives "Balanced\Card" ["uri"]=> string(68) "/v1/customers/CU34xY6f9bKZzb0kjBxWTUjC/cards/CCyO8fJPHpaVzypm7L1TFbw" however the card uri is /v1/marketplaces/TEST-MP9COksoYlU4rwuakSzwYH6/cards/CCyO8fJPHpaVzypm7L1TFbw
Won't this lead to problems retrieving card info/charging cards?
(3) If I try to add either card again there is no change to $customer or the balanced marketplace. Should I be able to see some sort of error response, if so how? The documentation "https://docs.balancedpayments.com/1.0/api/customers/#adding-a-card-to-a-customer" gives an Example Response, I am assuming this is changes made to $customer as it does not say how you would view this response.