STRIPE integration

Viewed 185

I'm using the REST Debugger as a first try at working with the stripe API. I can login and perform some basic creation and listing tasks. When creating a customer the (postal) address elements are described as parameters that are of type 'dictionary'. The docs (https://stripe.com/docs/api/customers/create) refers to them as 'child parameters' with a notation address.line1, address.city etc. I'm lost as to what this means in terms of a Delphi friendly syntax. Anyone got any clues to move me forward? Many thanks

1 Answers

I took a look at the PHP client sources, and I found that the parameters were flattened with a key[subkey] scheme before being sent. So you should use the following parameter names for the address:

  • address[line1]
  • address[city]
  • address[country]
  • ...
Related