Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Add order_id to Charges and my_customer_id to Customers created in sample app. #35

Merged
merged 1 commit into from
Aug 7, 2018

Conversation

danj-stripe
Copy link
Contributor

This shows off using the metadata field to include application-specific information
in the Stripe objects.

These metadata fields can be used for looking up the associated Order/Customer in your
app's backend, given the Order/Customer from Stripe.

…n sample app.

This shows off using the `metadata` field to include application-specific information
in the Stripe objects.

These metadata fields can be used for looking up the associated Order/Customer in your
app's backend, given the Order/Customer from Stripe.
@danj-stripe
Copy link
Contributor Author

Tested by curling each endpoint, with & without additional metadata, and looking through dashboard.stripe.com to make sure the expected metadata appeared.

Also quickly ran through the standard + custom iOS apps to make sure they weren't broken.

Copy link

@ksun-stripe ksun-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@danj-stripe danj-stripe merged commit f1a25cc into master Aug 7, 2018
@danj-stripe danj-stripe deleted the danj/feature/add-metadata branch August 7, 2018 19:24
danj-stripe added a commit to stripe/stripe-ios that referenced this pull request Aug 7, 2018
…ios-backend`

The value is meaningless, it's just a randomly generated UUID
`B3E611D1-5FA1-4410-9CEC-00958A5126CB`.

However, along with the changes from stripe/example-mobile-backend#35, this shows off some
of what `metadata` can be used for.

I am *not* adding metadata to each location where the Stripe API is directly used, only
the places that go through stripe/example-ios-backend. Many of the places that directly
deal with the stripe-ios SDK could *also* add metadata. That's being omitted for
simplicity.

See also IOS-356
danj-stripe added a commit to stripe/stripe-ios that referenced this pull request Aug 8, 2018
…ios-backend` (#1008)

* Add client-side metadata `charge_request_id` to requests to `example-ios-backend`

The value is meaningless, it's just a randomly generated UUID
`B3E611D1-5FA1-4410-9CEC-00958A5126CB`.

However, along with the changes from stripe/example-mobile-backend#35, this shows off some
of what `metadata` can be used for.

I am *not* adding metadata to each location where the Stripe API is directly used, only
the places that go through stripe/example-ios-backend. Many of the places that directly
deal with the stripe-ios SDK could *also* add metadata. That's being omitted for
simplicity.

See also IOS-356

* Update links to example-ios-backend to use v13.2.0 tag
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants