Brian Dorfman
c5dc9903f1
Fix public header + PR feedback
2017-08-07 13:48:34 -07:00
Brian Dorfman
7beed2ba6b
Document and audit StripeError
...
Moved most of the error message helper methods to a private category.
The only remaining exposed method is the one to create NSError from Stripe API json response (possibly still useful for people using STPBackendAPIAdapter or equivalent.
2017-08-04 13:06:06 -07:00
Brian Dorfman
4cd9a30210
More WIP docs/API audit
2017-08-04 12:03:18 -07:00
Brian Dorfman
6c9a93e07f
Add new bank account enum.
...
I've been going through documenting all our undocumented methods, constants, and enums. I noticed that the stripe.com docs list a possible Bank Account status value that isn't covered by our code (not sure when it was added?)
2017-08-01 14:00:34 -07:00
Joey Dong
fd1422508f
Merge branch 'master' into joey-add-nullability-payment-method
2017-07-31 11:34:32 -07:00
Joey Dong
b8deaa1042
Add tests for `STPPaymentMethod` protocol implementations
2017-07-28 13:12:20 -07:00
Joey Dong
a6bbd6e125
Expand NSDictionary/NSArray removeNulls helpers to filter deeply
...
Nulls are particularly difficult to work with in any situation so filter them out everywhere
2017-07-28 12:03:12 -07:00
Joey Dong
7be74c27ce
Rename `NSArray+Stripe_BoundSafe` to just `NSArray+Stripe`
...
We're going to add a few more helpers to this category but not so many that a separate category namespace is neccessary
2017-07-28 11:39:59 -07:00
Brian Dorfman
4023480ba7
Merge branch 'master' into bdorfman-single-line-postalfield
2017-07-26 12:04:30 -07:00
Joey Dong
570fdb0dbc
Add test coverage to `STPPaymentConfiguration`
2017-07-20 16:16:44 -07:00
Joey Dong
e27d40d54d
Move all test fixtures into JSON files
2017-07-06 11:41:02 -07:00
Joey Dong
9a8799e898
Improve test coverage for public models
...
Add a bunch of test coverage for our public models so that we’re closer
to having a 1:1 correspondence between the implementation and tests
This also shuffles some internal interface definitions into
`*+Private.h` headers so that they’re accessible from tests.
2017-07-06 11:39:42 -07:00
Brian Dorfman
4ed68a727b
Fix ZIP validation
2017-07-03 14:30:45 -07:00
Ben Guo
4de9256849
remove unused chevron icon
2017-06-29 09:40:01 -04:00
Brian Dorfman
b35fde4880
Rename cell to STPPaymentCardTextFieldCell
2017-06-28 17:08:10 -07:00
Brian Dorfman
f86c7fa767
Remove remember me
2017-06-28 17:05:59 -07:00
Ben Guo
d6c8be4958
Retrieve and update customer.shipping info via ephemeral key
2017-06-22 16:49:00 -04:00
Ben Guo
fc0dba04b8
respond to PR comments
2017-06-22 16:48:19 -04:00
Ben Guo
44c7901bbc
Add support for ephemeral keys
2017-06-22 16:45:36 -04:00
Ben Guo
3dd005b303
remove STPCustomerContext singleton
2017-06-22 15:19:39 -04:00
Ben Guo
8865d986ce
respond to PR comments
2017-06-22 15:18:27 -04:00
Ben Guo
8c39f55aee
Add support for ephemeral keys
2017-06-22 15:13:38 -04:00
Joey Dong
38802bba9f
Normalize Enum Implementations
...
Align various NS_ENUMs focusing on:
- Using a common “*mapping” method for translation to and from string
- Use `nil` for “Unknown” enum cases
- Set the `stringFrom*` to be `nullable` for enums with “Unknown” cases
- Add references to private header files
- Add test coverage
2017-06-21 14:53:56 -07:00
Joey Dong
3a4da5a4c8
Add test coverage for `STPBankAccountParams` and `STPCardParams`
2017-06-20 09:54:30 -07:00
bg-stripe
f670b5a28c
Merge pull request #694 from stripe/bg-applepay-country
...
Add paymentCountry and update Apple Pay helpers
2017-06-13 16:52:24 -04:00
Ben Guo
99b01fea8a
Allow scanning cards in AddCardVC via card.io
2017-06-08 17:56:19 -04:00
Brian Dorfman
b4ab0551a1
Merge pull request #691 from stripe/bdorfman-zip-state-autofill
...
Auto fill city/state from zip
2017-06-05 11:38:27 -07:00
Ben Guo
efcb66a0dc
Add paymentCountry and update Apple Pay helpers
2017-06-02 16:05:28 -04:00
Brian Dorfman
85ade76146
Auto fill city/state from zip
...
Works for anything using address view model (add card and shipping info).
Use CLGeocoder to get city and state from zip code.
Also moves zip code above city and state field so this makes sense, and requires zip codes to be 5 characters to be valid.
2017-05-30 16:24:32 -07:00
Ben Guo
eaabffc8b8
move mocks to STPMocks
2017-05-24 13:22:02 -04:00
Ben Guo
d035cc1262
STPCustomerDeserializerTest -> STPCustomerTest
2017-05-18 14:15:46 -04:00
Brian Dorfman
ac708b81d6
Update analytics
...
Bucket product usage client side
Add app name and version to analytics
Move PayTextField's commonInit to private header
2017-05-03 11:58:08 -07:00
Ben Guo
6a91621049
fix target membership
2017-05-03 10:38:05 -04:00
bg-stripe
7b6acc1160
Merge branch 'master' into bg-telemetry
2017-05-02 19:23:53 -04:00
Ben Guo
be3070b4c0
add new icons to resources target
2017-05-02 12:55:45 -04:00
Ben Guo
0d949c95e9
update card icons
2017-05-02 11:41:14 -04:00
Brian Dorfman
937e463b44
Move image resizing code to category and add tests
2017-04-25 16:52:09 -07:00
Ben Guo
d59a349379
Add STPTelemetryClient
2017-04-24 18:06:37 -04:00
Brian Dorfman
ab1c8c95b2
Reorganize Xcodeproj file groupings
2017-04-21 14:15:04 -07:00
Brian Dorfman
a18f255781
Merge branch 'master' into bdorfman-redirect-context
2017-04-21 11:26:27 -07:00
Brian Dorfman
cb313cf9d3
Merge pull request #650 from stripe/bdorfman-cncontact
...
Adds support for Contacts framework
2017-04-21 09:53:25 -07:00
bg-stripe
989a9e6eff
Merge pull request #643 from stripe/bg-error-parsing
...
Improve error parsing
2017-04-21 10:34:12 -04:00
Brian Dorfman
da6818d246
Merge branch 'master' into bdorfman-redirect-context
2017-04-20 16:17:09 -07:00
Brian Dorfman
0e38aae137
Adds support for Contacts framework
...
If you are on the appropriate ios version, does work using CNContact or PKContact in places instead of ABAddressRef
2017-04-20 15:49:27 -07:00
Brian Dorfman
b843620eed
Move redirectcontext over from sources-ui
2017-04-20 11:28:12 -07:00
Brian Dorfman
eca11c86e3
Pass up app name in source return urls
2017-04-18 13:42:01 -07:00
Ben Guo
2185fe95cc
improve error parsing and add tests
2017-04-14 18:53:25 -04:00
Ben Guo
75f8b22894
xcode 8.3 updates
2017-04-03 16:25:16 -04:00
Ben Guo
74916ad5b8
add OCMock
2017-03-28 15:17:42 -07:00
Ben Guo
a1747e7d81
update project for xcode 8.2
2017-03-01 16:43:26 -05:00