#cyoo
1 messages · Page 1 of 1 (latest)
Is this the correct way to get in the InstallmentPlanNumber, if at all possible?
if (charge != null) {
String splitItInstallmentPlanId = Optional.ofNullable(charge)
.map(Charge::getMetadata)
.map(metaData -> metaData.get("InstallmentPlanNumber"))
.orElse(null);```
Hi, you can retrieve the change, https://stripe.com/docs/api/charges/retrieve and look at the metadata, https://stripe.com/docs/api/charges/object#charge_object-metadata on the charge via the API.
Ok, so it is possible to get the metadata. That's good to know. I was just confused by what was meant by "You can search for the metadata through the dashboard but not through the API"